• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Deriving a new dialect of Very Tiny Language from VTL-2 6800 version


Commit MetaInfo

Revisionea551197339ed3098ed96d60da76c78d28e75e75 (tree)
Time2022-10-06 15:56:26
AuthorJoel Matthew Rees <joel.rees@gmai...>
CommiterJoel Matthew Rees

Log Message

Using Y in decimal conversion, analyzing powers10

Change Summary

Incremental Difference

--- a/VTL_6809_coco.asm
+++ b/VTL_6809_coco.asm
@@ -441,12 +441,26 @@ GOTIT
441441 *
442442 * RSTRT LBRA START ; warm start over
443443 *
444+PWRS10 FCB $27 ; 10000
445+ FCB $10
446+ FCB $03 ; 1000
447+ FCB $E8
448+ FCB $00 ; 100
449+ FCB $64
450+ FCB $00 ; 10
451+ FCB $0A
452+ FCB $00 ; 1
453+ FCB $01
454+*
444455 PRNT PULS B ; PRINT DECIMAL
445-PRNT2 LDX #DECBUF ; CONVERT TO DECIMAL ** fix this reference later
456+PRNT2 LDX #DECBUF ; CONVERT TO DECIMAL ** fix local variables later
446457 STX CNVPTR
447- LDX #PWRS10
448-CVD1 PSHS X
449- LDX 0,X
458+* LDX #PWRS10
459+ LEAY PWRS10,PCR
460+*CVD1 PSHS X
461+* LDX 0,X
462+CVD1
463+ LDX 0,Y
450464 STX VARADR
451465 LDX #VARADR
452466 LBSR DIVIDE
@@ -458,9 +472,11 @@ CVD1 PSHS X
458472 PULS A
459473 LEAX 1,X
460474 STX CNVPTR
461- PULS X
462- LEAX 2,X
463- TST 1,X
475+* PULS X
476+* LEAX 2,X
477+* TST 1,X ; What is this stopping on?
478+ LEAY 2,Y
479+ TST 1,Y ; What is this stopping on?
464480 BNE CVD1
465481 *
466482 LDX #DECB_1
@@ -632,16 +648,7 @@ EVAL7 BSR SUB2 ; GT TEST
632648 COMBOUT COMB
633649 BRA COMOUT
634650 *
635-PWRS10 FCB $27 ; 10000
636- FCB $10
637- FCB $03 ; 1000
638- FCB $E8
639- FCB $00 ; 100
640- FCB $64
641- FCB $00 ; 10
642- FCB $0A
643- FCB $00 ; 1
644- FCB $01
651+* Move powers of 10 closer to what uses it.
645652 *
646653 DIVIDE CLR MLDVCT ; DEVIDE 16-BITS
647654 GOT INC MLDVCT