• 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

Revision0ee453130d83ba00fbac25efff9454790354d7e3 (tree)
Time2022-09-25 21:54:30
AuthorJoel Matthew Rees <joel.rees@gmai...>
CommiterJoel Matthew Rees

Log Message

removed debugging pokes to screen

Change Summary

Incremental Difference

--- a/VTL_6809_coco_translit.asm
+++ b/VTL_6809_coco_translit.asm
@@ -189,38 +189,27 @@ PROBET CMPX #COLD
189189 BLO PROBE ; CMPX on 6809 works right.
190190 NOTRAM LEAX -1,X
191191 STX STAR
192-* STX $402 ; DBG
193192 START
194- STX $400 ; DBG
195193 * LDS #STACK ; re-initialize at beginning of each evaluate
196194 LDS STKMRK ; from mark instead of constant
197195 STS SEMI ; DBG Comment this out when we no longer need to see the stack pointer BASIC gives us.
198196 CLRA ; NUL delimiter
199197 LDX #OKM
200-* STX $404 ; DBG
201198 LBSR STRING
202-* BRA * ; DBG
203199 *
204200 LOOP CLRA
205201 STA DOLR
206202 STA DOLR+1
207- INC $40D ; DBG
208- STA $420 ; DBG
209203 LBSR CVTLN
210- INC $40E ; DBG
211- STA $421 ; DBG
212204 BCC STMNT ; NO LINE# THEN EXEC
213205 BSR EXEC
214206 BEQ START
215207 *
216208 LOOP2 BSR FIND ; FIND LINE
217209 EQSTRT BEQ START ; IF END THEN STOP
218- DEC $42A ; DBG
219210 LDX 0,X ; LOAD REAL LINE #
220- STX $42B ; DBG
221211 STX DOLR ; SAVE IT
222212 LDX SAVLIN ; GET LINE
223- STX $42D ; DBG
224213 LEAX 3,X ; BUMP PAST LINE # and SPACE
225214 BSR EXEC ; EXECUTE IT
226215 BEQ LOOP3 ; IF ZERO, CONTINUE
@@ -276,11 +265,9 @@ LOOKAG LEAX 1,X ; FIND END OF LINE
276265 RTS
277266 *
278267 FIND LDX #PRGM ; FIND LINE
279- DEC $425 ; DBG
280268 FND2 STX SAVLIN
281269 CMPX AMPR
282270 BEQ RTS1
283- DEC $426 ; DBG
284271 * LDA 1,X ; almost missed this.
285272 * SUBA DOLR+1 ; This was necessary because no SUBD
286273 * LDA 0,X ; and CPX does not affect C flag on 6800
@@ -290,14 +277,11 @@ FND2 STX SAVLIN
290277 SUBD DOLR
291278 * PULS B
292279 BCC SET
293- DEC $427 ; DBG
294280 FND3 BSR NXTXT
295- DEC $428 ; DBG
296281 BRA FND2
297282 *
298283 SET LDA #$FF ; SET NOT EQUAL
299284 RTS1
300- CLR $429 ; DBG (Z FLAG SET)
301285 RTS
302286 *
303287 EVALU LBSR EVAL ; EVALUATE LINE
@@ -326,10 +310,8 @@ AR2RND ADDB QUITE ; RANDOMIZER ; Adding the low byte to the high byte
326310 RTS
327311 *
328312 SKP2
329- DEC $422 ; DBG
330313 BSR FIND ; FIND LINE
331314 BEQ INSRT ; IF NOT THERE
332- DEC $423 ; DBG
333315 LDX 0,X ; THEN INSERT
334316 CMPX DOLR ; NEW LINE
335317 BNE INSRT
@@ -359,9 +341,7 @@ FITIT LDX DST
359341 STX AMPR ; STORE NEW END
360342 *
361343 INSRT
362- INC $423 ; DBG
363344 LDX EDTLIN ; COUNT NEW LINE LENGTH
364- STX $430 ; DBG
365345 LDB #$03
366346 TST 0,X
367347 BEQ GOTIT ; IF NO LINE THEN STOP
@@ -369,17 +349,13 @@ CNTLN INCB ; count bytes
369349 LEAX 1,X
370350 TST 0,X ; Find trailing NUL
371351 BNE CNTLN
372- STX $432 ; DBG
373- STB $434 ; DBG
374352 *
375353 OPEN CLRA ; CALCULATE NEW END
376354 ADDD AMPR
377355 STD INSPTR
378- STD $437 ; DBG
379356 SUBD STAR
380357 LBCC START ; IF TOO BIG THEN STOP
381358 LDX AMPR
382- STX $435
383359 * LDS INSPTR ; Remember that the 6800/6801 stack is postdecrement push.
384360 * STS AMPR
385361 LDD INSPTR ; The 6809 stack is predecrement push, but that doesn't matter here.
@@ -401,7 +377,6 @@ SLIDE LEAX -1,X ; going down
401377 * DON LDS DOLR ; STORE LINE #
402378 * STS 0,X
403379 DON
404- STX $439 ; DBG
405380 LDD DOLR ; STORE LINE #
406381 STD 0,X ; Note MSB1st byte order implicit dependency here.
407382 STX DST ; will skip by offset on store
@@ -409,7 +384,6 @@ DON
409384 * DES ; pre-increment
410385 LDD EDTLIN ; GET NEW LINE
411386 STD SRC
412- STD $43B ; DBG
413387 *
414388 *MOVL INX ; INSERT NEW LINE (skip over LINE # hi byte)
415389 * PULB
@@ -425,10 +399,7 @@ MOVL LDX SRC
425399 *
426400 GOTIT
427401 * LDS #STACK ; Ready for a new line of input.
428- STS $41C ; DBG
429402 LDS STKMRK ; restore from mark
430- STS $41E ; DBG
431- STX $43D ; DBG
432403 LBRA LOOP
433404 *
434405 * RSTRT LBRA START ; warm start over
@@ -465,27 +436,18 @@ ZRSUP LEAX 1,X
465436 *
466437 PNTMSG CLRA ; ZERO FOR DELIM
467438 STRTMS STA DELIM ; STORE DELIMTER
468-* DEC $408 ; DBG
469439 *
470440 OUTMSG LDB ,X+ ; GENERAL PURPOSE PRINT
471-* INC $409 ; DBG
472-* STB $40A ; DBG
473441 CMPB DELIM
474442 BEQ CTLC
475443 LBSR OUTCH
476-* STB $40C ; DBG
477444 BRA OUTMSG
478445 *
479446 CTLC
480-* INC $420 ; DBG
481447 LBSR POLCAT ; POL FOR CHARACTER
482-* INC $421 ; DBG
483448 BCC RTS2 ; return wherever we came from
484-* INC $422 ; DBG
485-* STB $423 ; DBG
486449 LBSR INCH
487450 CMPB #BREAK ; BREAK KEY?
488-* STB $424 ; DBG
489451 LBEQ START
490452 *
491453 INCH2 LBRA INCH
@@ -552,9 +514,7 @@ OUTV RTS
552514 *
553515 VAR CMPB #'$ ; OR STRING
554516 BNE VAR1
555-* INC $418 ; DBG
556517 LBSR INCH
557-* STB $419 ; DBG
558518 CLRA
559519 LEAX 1,X
560520 RTS
@@ -718,10 +678,7 @@ INLN LDX #ZERO+2 ; INPUT LINE FROM TERMINAL
718678 INLN5 LEAX -1,X
719679 CMPX #ZERO ; Make this explicit to enable variables moved out of DP.
720680 BEQ NEWLIN ; (Was implicit zero compare X from DEX, now explicit.)
721-* INC $420 ; DBG
722681 INLN2 LBSR INCH ; INPUT CHARACTER
723-* STB $421 ; DBG
724-* INC $422 ; DBG
725682 STB BUFOFF-1,X ; STORE IT
726683 CMPB #$5F ; BACKSPACE?
727684 BEQ INLN5
@@ -770,10 +727,7 @@ POLCATR PULS A
770727 *
771728 * INPUT ONE CHAR INTO B ACCUMULATOR
772729 INCH BSR POLCAT
773-* INC $400 ; DBG
774730 BCC INCH ; Wait here.
775-* INC $401 ; DBG
776-* STB $402 ; DBG
777731 BSR OUTCH ; echo
778732 RTS
779733 *
@@ -781,8 +735,6 @@ INCH BSR POLCAT
781735 OUTCH PSHS B,A
782736 TFR B,A
783737 JSR [OUTCHV]
784-* INC $410 ; DBG
785-* STA &411 ; DBG
786738 PULS A,B
787739 RTS
788740 *