first commit
This commit is contained in:
28
boot_debug.s
Normal file
28
boot_debug.s
Normal file
@@ -0,0 +1,28 @@
|
||||
; Debug Bootblock - Green Screen Loop
|
||||
MACHINE 68000
|
||||
ORG 0
|
||||
|
||||
dc.b 'D','O','S',0 ; DOS magic
|
||||
dc.l 0 ; Checksum
|
||||
dc.l 880 ; Rootblock
|
||||
|
||||
; Boot code
|
||||
DMACON EQU $096
|
||||
COLOR00 EQU $180
|
||||
|
||||
boot_start:
|
||||
; Direct hardware access to set color
|
||||
lea $dff000,a6 ; Custom Chips Base
|
||||
|
||||
; Disable DMA to be safe
|
||||
move.w #$7FFF,DMACON(a6)
|
||||
|
||||
; Set Background Color to GREEN
|
||||
move.w #$0F0,COLOR00(a6)
|
||||
|
||||
.loop:
|
||||
; Infinite loop
|
||||
bra.s .loop
|
||||
|
||||
; Pad to 1024 bytes
|
||||
dcb.b 1024-(*-0),0
|
||||
Reference in New Issue
Block a user