In system(), avoid depending on the data bank value at entry.
The previous code relied on the data bank value at entry being the bank that contained the library code. This might not be the case when called from code using the large memory model, which could lead to the wrong value being returned.
This commit is contained in:
parent
869f8726a6
commit
9937ef7003
|
@ -1593,14 +1593,14 @@ system start
|
|||
sta exComm+2
|
||||
lb1 phy execute the command
|
||||
phx
|
||||
plb
|
||||
Execute ex
|
||||
ldy empty
|
||||
bne ret if doing system(NULL)
|
||||
tya
|
||||
bcs ret error => no command processor
|
||||
inc a (& vice versa)
|
||||
ret rtl
|
||||
ret plb
|
||||
rtl
|
||||
|
||||
ex dc i'$8000'
|
||||
exComm ds 4
|
||||
|
|
Loading…
Reference in New Issue