mirror of
https://github.com/mi57730/a2d.git
synced 2025-02-11 16:31:07 +00:00
DeskTop: Check driver before reinstalling RAM
This commit is contained in:
parent
d0b516eb2f
commit
53c96d201d
@ -2076,9 +2076,14 @@ start:
|
||||
;; Restore machine to text state
|
||||
sta ALTZPOFF
|
||||
jsr exit_dhr_mode
|
||||
|
||||
;; S3D2 /RAM driver still in place?
|
||||
RAMSLOT := DEVADR + $10 + 3*2 ; Slot 3, Drive 2
|
||||
cmp16 RAMSLOT, NODEV
|
||||
beq quit ; No, so give up
|
||||
jsr reinstall_ram
|
||||
|
||||
jmp quit_code_addr
|
||||
quit: jmp quit_code_addr
|
||||
|
||||
fail: jsr DESKTOP_SHOW_ALERT
|
||||
rts
|
||||
|
@ -46,7 +46,11 @@ end:
|
||||
;;; Pad with zeros to the given address
|
||||
|
||||
.macro PAD_TO addr
|
||||
.if (addr - *) >= 0
|
||||
.res addr - *, 0
|
||||
.else
|
||||
.error .sprintf("Padding offset %d", addr - *)
|
||||
.endif
|
||||
.endmacro
|
||||
|
||||
;;; ============================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user