rework for the initial CBDOS

This commit is contained in:
FeralChild64 committed 2021-02-03 16:05:07 +01:00
1 parent 82729bb621
commit 92d1ad0177
13 files changed
+349 -85

No files matched your search

+32
View File
@@ -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