tweak the code slightly
This commit is contained in:
parent
5da4ffa1b1
commit
79fc294506
10
gidubba.asm
10
gidubba.asm
|
@ -904,10 +904,6 @@ write: load r0, #ff
|
||||||
;Write
|
;Write
|
||||||
cleq r0, r0, prwr
|
cleq r0, r0, prwr
|
||||||
|
|
||||||
;Write an end-of-file
|
|
||||||
load r0, #1a
|
|
||||||
store fffd, r0
|
|
||||||
|
|
||||||
;Return to the command prompt
|
;Return to the command prompt
|
||||||
breq r0, r0, cmdp
|
breq r0, r0, cmdp
|
||||||
|
|
||||||
|
@ -1793,13 +1789,13 @@ prwr: load r0, svstrt
|
||||||
;Load a character from the save
|
;Load a character from the save
|
||||||
chprwr: load r1, buffer + 100
|
chprwr: load r1, buffer + 100
|
||||||
|
|
||||||
|
;Print the character
|
||||||
|
prwrch: store fffe, r1
|
||||||
|
|
||||||
;Check for the save end
|
;Check for the save end
|
||||||
load r2, #1a
|
load r2, #1a
|
||||||
breq r1, r2, pwend
|
breq r1, r2, pwend
|
||||||
|
|
||||||
;Print the character
|
|
||||||
prwrch: store fffe, r1
|
|
||||||
|
|
||||||
;Increment the save address
|
;Increment the save address
|
||||||
;Load the address
|
;Load the address
|
||||||
load r0, chprwr + 1
|
load r0, chprwr + 1
|
||||||
|
|
Loading…
Reference in New Issue