Deriving a new dialect of Very Tiny Language from VTL-2 6800 version
Revision | b163b0691f356186b723b0fb17b9ec007e54b44a (tree) |
---|---|
Time | 2022-10-02 20:39:00 |
Author | Joel Matthew Rees <joel.rees@gmai...> |
Commiter | Joel Matthew Rees |
More Y conversions
@@ -378,8 +378,6 @@ OPEN LDX AMPR ; CALCULATE NEW END | ||
378 | 378 | CMPY STAR |
379 | 379 | LBHS START |
380 | 380 | |
381 | -* Changes to here known to be functional 10/01 | |
382 | - | |
383 | 381 | * LDX AMPR |
384 | 382 | ** LDS INSPTR ; Remember that the 6800/6801 stack is postdecrement push. |
385 | 383 | ** STS AMPR |
@@ -409,26 +407,33 @@ SLIDE LDB ,-X | ||
409 | 407 | DON |
410 | 408 | LDD DOLR ; STORE LINE # |
411 | 409 | STD 0,X ; ** Note MSB1st byte order implicit dependency here! ** |
412 | - STX DST ; will skip by offset on store | |
413 | -* LDS EDTLIN ; GET NEW LINE | |
414 | -* DES ; pre-increment | |
415 | - LDD EDTLIN ; GET NEW LINE | |
416 | - STD SRC | |
417 | -* | |
418 | -*MOVL INX ; INSERT NEW LINE (skip over LINE # hi byte) | |
419 | -* PULB | |
420 | -* STAB 1,X ; (skips over low byte, BTW) | |
421 | -MOVL LDX SRC | |
422 | - LDB ,X+ | |
423 | - STX SRC | |
424 | - LDX DST | |
410 | +* STX DST ; will skip by offset on store | |
411 | +** LDS EDTLIN ; GET NEW LINE | |
412 | +** DES ; pre-increment | |
413 | +* LDD EDTLIN ; GET NEW LINE | |
414 | +* STD SRC | |
415 | + LDY EDTLIN ; GET NEW LINE | |
416 | +* | |
417 | +**MOVL INX ; INSERT NEW LINE (skip over LINE # hi byte) | |
418 | +** PULB | |
419 | +** STAB 1,X ; (skips over low byte, BTW) | |
420 | +*MOVL LDX SRC | |
421 | +* LDB ,X+ | |
422 | +* STX SRC | |
423 | +MOVL LDB ,Y+ | |
424 | +* LDX DST | |
425 | +* LEAX 1,X ; skip over what was already stored (too tricky for words). | |
426 | +* STX DST | |
425 | 427 | LEAX 1,X ; skip over what was already stored (too tricky for words). |
426 | - STX DST | |
427 | 428 | STB 1,X ; note offset store |
428 | 429 | BNE MOVL ; until NUL stored |
430 | + | |
431 | +* Changes to here known to be functional 10/01 | |
432 | + | |
429 | 433 | * |
430 | 434 | GOTIT |
431 | 435 | * LDS #STACK ; Ready for a new line of input. |
436 | + LDU #STACK ; Ready for a new line of input. | |
432 | 437 | LDS STKMRK ; restore from mark |
433 | 438 | LBRA LOOP |
434 | 439 | * |