NP2kai/romimage/FIRMWARE.X86
2017-08-27 04:45:16 +09:00

71 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

; CPUƒ<C692>[ƒhÌ•\Ž¦
cpumoderes db "CPU MODE ", 0
db "High", 0
db "Low", 0
CPUMODE_DISP: mov si, offset cpumoderes
call TEXTOUT_CS
in al, 42h
test al, 2
je cpumodedisp1
add si, 5
cpumodedisp1: call TEXTOUT_CS
mov dl, 0
inc dh
ret
; ----------------------------------------------------------------------------
; BIOS UPDATẼ_ƒ~<7E>[
FLASH_WRITE: mov cl, 0e1h
mov si, offset res_wflash
call TEXTOUT_CS
flashwritelp: call WAITVSYNC1
jmps flashwritelp
; ----------------------------------------------------------------------------
; BIOS Revision
BIOS_REVISON: mov si, offset res_rev1
call TEXTOUT_CS
mov si, offset res_revver
call TEXTOUT_CS
mov si, offset res_rev2
jmp TEXTOUT_CS
; ----------------------------------------------------------------------------
FIRMWARE_TEST: mov si, offset res_firm1
mov cl, 0a9h
call TEXTOUT_CS
mov cl, 0e1h
mov si, offset res_firm2
call TEXTOUT_CS
call PUT_CPU
mov si, offset res_firm3
call TEXTOUT_CS
call PUT_CLOCK
mov si, offset res_firm4
jmp TEXTOUT_CS
; ----------------------------------------------------------------------------
RESET_ALLSW: mov si, offset res_resdip2
mov cl, 041h
call TEXTOUT_CS
call MEMSW_INIT
ra_dipinit: call INIT_DIPSW
jmp SET_DIPSW
; ----------------------------------------------------------------------------
FLASH_CLEAR: mov si, offset res_resdip
mov cl, 0c1h
call TEXTOUT_CS
jmp short ra_dipinit