Crazy-Blaster/Crazy BIOS/shared/CompMacro.asm
2024-08-02 02:52:29 +10:00

64 lines
1.2 KiB
NASM
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;
MACRO ShowInfo text, in_disp
; DISPLAY ' '
; DISPLAY '[*] ', text
; IF in_disp
; DISPLAY 'ROM:'
; DISPLAY ' ORG: ',/H, $$$
; DISPLAY ' PAGE: ',/H, $$$$
; DISPLAY 'MEM:'
; DISPLAY ' DISP: ',/H, $
; DISPLAY ' PAGE: ',/H, $$
; ELSE
; DISPLAY 'ROM:'
; DISPLAY ' ORG: ',/H, $
; DISPLAY ' PAGE: ',/H, $$
; ENDIF
; DISPLAY '[X]'
; DISPLAY ' '
ENDM
;
MACRO SET_IMG_LABEL
.Crazy_IMG_Label: DB "Crazy Blaster Image"
ENDM
;
; ‚室: è¨à¨­  á¯à ©â , ¢ëá®â , ª®®à¤¨­ â  X, ª®®à¤¨­ â  Y,  ¤à¥á á¯à ©â  ¢ ¯ ¬ïâ¨
MACRO EasterTable width, height, Xcoord, Ycoord, addr
WORD addr ;  ¤à¥á á¯à ©â  ¢ ¯ ¬ïâ¨
WORD width ; ˜¨à¨­ 
BYTE height+Ycoord ; ‚ëá®â  + Y coord
WORD Xcoord+#4040 ; X coord ; !HARDCODE ¨á¯à ¢¨âì ­  ¬¥âªã #4040 -  ¤à¥á «®£®
BYTE Ycoord ; Y coord
ENDM
;
;
MACRO RST_to_BIOS
IF (IsInBIOS = 0) && ($ < #4000)
CALL ToBIOS_FromEXT
ELSE
RST ToBIOS_18
ENDIF
ENDM
;
;
MACRO JP_to_BIOS
IF (IsInBIOS = 0) && ($ < #4000)
JP ToBIOS_FromEXT
ELSE
JP ToBIOS_18
ENDIF
ENDM
;
;
; MACRO
; ENDM
;