rework for the initial CBDOS
This commit is contained in:
1 parent
82729bb621
commit
92d1ad0177
13 files changed
+349
-85
No files matched your search
@@ -0,0 +1,32 @@
|
||||
|
||||
;
|
||||
; Check if DOS memory is not overwritten
|
||||
;
|
||||
|
||||
|
||||
dos_MEMCHK:
|
||||
|
||||
; Check for magic string
|
||||
|
||||
pha
|
||||
phx
|
||||
|
||||
ldx #$04
|
||||
@1:
|
||||
lda MAGICSTR, x
|
||||
cmp dos_magicstr, x
|
||||
bne @fail
|
||||
dex
|
||||
bpl @1
|
||||
|
||||
plx
|
||||
pla
|
||||
clc
|
||||
rts
|
||||
|
||||
@fail:
|
||||
|
||||
plx
|
||||
pla
|
||||
sec
|
||||
rts
|
||||
Reference in new issue
Block a user