mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
New ROMLDR and INTRTC driver
- Refactored romldr.asm - Added new periodic timer based RTC driver
This commit is contained in:
@@ -2296,8 +2296,16 @@ DRV_INIT:
|
||||
; GET BOOT UNIT/SLICE INFO
|
||||
LD BC,$00FC ; UNA FUNC: GET BOOTSTRAP HISTORY
|
||||
RST 08 ; CALL UNA
|
||||
LD D,L ; SAVE L AS UNIT
|
||||
LD E,0 ; SLICE IS ZERO
|
||||
LD A,L ; PUT IN ACCUM
|
||||
AND $0F ; UNIT IN LOW NIBBLE
|
||||
LD D,A ; UNIT NUM TO D
|
||||
LD A,L ; GET ORIGINAL VALUE BACK
|
||||
RLCA ; MOVE SLICE TO LOW NIBBLE
|
||||
RLCA ; ...
|
||||
RLCA ; ...
|
||||
RLCA ; ...
|
||||
AND $0F ; SLICE NOW IN LOW NIBBLE
|
||||
LD E,A ; SLICE TO E
|
||||
LD (BOOTVOL),DE ; D -> UNIT, E -> SLICE
|
||||
;
|
||||
; INIT DEFAULT
|
||||
|
||||
Reference in New Issue
Block a user