Vhex-kernel/src/kernel/util/casio/syscall.s

270 lines
5.0 KiB
ArmAsm

.text
.global _casio_Bdisp_PrintMini
.global _casio_Bdisp_PutDisp_DD
.global _casio_Bdisp_AllClr_VRAM
.global _casio_Bdisp_DrawLine_VRAM
.global _casio_Bdisp_AreaReverseVRAM
.global _casio_Bdisp_AreaClr_VRAM
.global _casio_Bdisp_GetVRAM
.global _casio_Bdisp_RestoreDisp
.global _casio_Bdisp_SaveDisp
.global _casio_Malloc
.global _casio_Free
.global _casio_GetKeyWait
.global _casio_GetKey
.global _casio_Bkey_PutKeymatrix
.global _casio_Bfile_CreateFile
.global _casio_Bfile_OpenFile
.global _casio_Bfile_ReadFile
.global _casio_Bfile_WriteFile
.global _casio_Bfile_CloseFile
.global _casio_Bfile_FindFirst
.global _casio_Bfile_FindNext
.global _casio_Bfile_FindClose
.global _casio_TimerInstall
.global _casio_TimerUninstall
.global _casio_TimerStart
.global _casio_TimerStop
.type _casio_PrintMini, @function
.type _casio_Bdisp_PutDisp_DD, @function
.type _casio_Bdisp_AllClr_VRAM, @function
.type _casio_Bdisp_DrawLine_VRAM, @function
.type _casio_Bdisp_AreaReverseVRAM, @function
.type _casio_Bdisp_AreaClr_VRAM, @function
.type _casio_Bdisp_GetVRAM, @function
.type _casio_RestoreDisp, @function
.type _casio_SaveDisp, @function
.type _casio_Malloc, @function
.type _casio_Free, @function
.type _casio_GetKeyWait, @function
.type _casio_GetKey, @function
.type _casio_Bkey_PutKeymatrix, @function
.type _casio_Bfile_CreateFile, @function
.type _casio_Bfile_OpenFile, @function
.type _casio_Bfile_ReadFile, @function
.type _casio_Bfile_WriteFile, @function
.type _casio_Bfile_CloseFile, @function
.type _casio_Bfile_FindFirst, @function
.type _casio_Bfile_FindNext, @function
.type _casio_Bfile_FindClose, @function
.type _casio_SetTimer, @function
.type _casio_KillTimer, @function
.align 2
_casio_Bdisp_GetVRAM:
mov.l .syscall_entry, r1
mov.l .sys_getVRAM, r0
jmp @r1
nop
_casio_Bdisp_PrintMini:
mov.l .syscall_entry, r1
mov.l .sys_printMini, r0
jmp @r1
nop
_casio_Bdisp_AllClr_VRAM:
mov.l .syscall_entry, r1
mov.l .sys_clear, r0
jmp @r1
nop
_casio_Bdisp_PutDisp_DD:
mov.l .syscall_entry, r1
mov.l .sys_display, r0
jmp @r1
nop
_casio_Bdisp_DrawLine_VRAM:
mov.l .syscall_entry, r1
mov.l .sys_line, r0
jmp @r1
nop
_casio_Bdisp_AreaClr_VRAM:
mov.l .syscall_entry, r1
mov.l .sys_clear_area, r0
jmp @r1
nop
_casio_Bdisp_AreaReverseVRAM:
mov.l .syscall_entry, r1
mov.l .sys_reverse_area, r0
jmp @r1
nop
_casio_Bdisp_RestoreDisp:
mov.l .syscall_entry, r1
mov.l .sys_restore_disp, r0
jmp @r1
nop
_casio_Bdisp_SaveDisp:
mov.l .syscall_entry, r1
mov.l .sys_save_disp, r0
jmp @r1
nop
_casio_Malloc:
mov.l .syscall_entry, r1
mov.l .sys_malloc, r0
jmp @r1
nop
_casio_Free:
mov.l .syscall_entry, r1
mov.l .sys_free, r0
jmp @r1
nop
_casio_GetKey:
mov.l .syscall_entry, r1
mov.l .sys_getkey, r0
jmp @r1
nop
_casio_GetKeyWait:
mov.l .syscall_entry, r1
mov.l .sys_getkeywait, r0
jmp @r1
nop
_casio_Bkey_PutKeymatrix:
mov.l .syscall_entry, r1
mov.l .sys_putKeycode, r0
jmp @r1
nop
_casio_Bfile_CreateFile:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_CreateFile, r0
jmp @r1
nop
_casio_Bfile_OpenFile:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_OpenFile, r0
jmp @r1
nop
_casio_Bfile_WriteFile:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_WriteFile, r0
jmp @r1
nop
_casio_Bfile_ReadFile:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_ReadFile, r0
jmp @r1
nop
_casio_Bfile_CloseFile:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_CloseFile, r0
jmp @r1
nop
_casio_Bfile_FindFirst:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_FindFirst, r0
jmp @r1
nop
_casio_Bfile_FindNext:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_FindNext, r0
jmp @r1
nop
_casio_Bfile_FindClose:
mov.l .syscall_entry, r1
mov.l .sys_Bfile_FindClose, r0
jmp @r1
nop
_casio_TimerInstall:
mov.l .syscall_entry, r1
mov.l .sys_TimerInstall, r0
jmp @r1
nop
_casio_TimerStart:
mov.l .syscall_entry, r1
mov.l .sys_TimerStart, r0
jmp @r1
nop
_casio_TimerUninstall:
mov.l .syscall_entry, r1
mov.l .sys_TimerUninstall, r0
jmp @r1
nop
_casio_TimerStop:
mov.l .syscall_entry, r1
mov.l .sys_TimerStop, r0
jmp @r1
nop
.align 4
.syscall_entry: .long 0x80010070
.sys_getVRAM: .long 0x00000135
.sys_line: .long 0x00000030
.sys_clear: .long 0x00000143 /*Bdisp_AllClr_VRAM */
.sys_getkey: .long 0x0000090f
.sys_display: .long 0x00000028
.sys_printMini: .long 0x00000c4f
.sys_clear_area: .long 0x0000014b
.sys_reverse_area: .long 0x0000014d
.sys_restore_disp: .long 0x00000814
.sys_save_disp: .long 0x00000813
.sys_malloc: .long 0x00000acd
.sys_free: .long 0x00000acc
.sys_getkeywait: .long 0x00000247
.sys_putKeycode: .long 0x0000024f
.sys_Bfile_CreateFile: .long 0x00000434
.sys_Bfile_OpenFile: .long 0x0000042c
.sys_Bfile_WriteFile: .long 0x00000435
.sys_Bfile_ReadFile: .long 0x00000432
.sys_Bfile_CloseFile: .long 0x0000042d
.sys_Bfile_FindFirst: .long 0x0000043b
.sys_Bfile_FindNext: .long 0x0000043c
.sys_Bfile_FindClose: .long 0x0000043d
.sys_TimerInstall: .long 0x00000118
.sys_TimerUninstall: .long 0x00000119
.sys_TimerStart: .long 0x0000011a
.sys_TimerStop: .long 0x0000011b
.end