Commit 269dfc83 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Shock addition of some comments.

Two more hardwired constants swapped for defines.
Not tagged.
parent 3a7f1161
...@@ -107,6 +107,9 @@ o_prefix # 4 ...@@ -107,6 +107,9 @@ o_prefix # 4
AREA |ddeutils$$module|, CODE, READONLY AREA |ddeutils$$module|, CODE, READONLY
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Header
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
module_start module_start
DCD 0 ; Run DCD 0 ; Run
DCD init - module_start ; Init DCD init - module_start ; Init
...@@ -198,8 +201,8 @@ ursservice ...@@ -198,8 +201,8 @@ ursservice
SWI XDDEUtils_Prefix SWI XDDEUtils_Prefix
LDMFD sp!, {r0, pc} LDMFD sp!, {r0, pc}
; Really should clear the chain here...
reset reset
; Really should clear the chain here...
STMFD sp!, {r0, lr} STMFD sp!, {r0, lr}
BL claimvectors BL claimvectors
LDMFD sp!, {r0, pc} LDMFD sp!, {r0, pc}
...@@ -228,6 +231,9 @@ prefix_dir ...@@ -228,6 +231,9 @@ prefix_dir
DCB "Prefix$Dir", 0 DCB "Prefix$Dir", 0
ALIGN ALIGN
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Initialisation and finalisation
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
init init
STMFD sp!, {r7, r8, r9, r10, r11, lr} STMFD sp!, {r7, r8, r9, r10, r11, lr}
ADR r0, filetype_fd3 ADR r0, filetype_fd3
...@@ -373,8 +379,8 @@ prefix_dir_code ...@@ -373,8 +379,8 @@ prefix_dir_code
MOV r1,r0 MOV r1,r0
01 01
LDRB r2,[r1],#1 LDRB r2,[r1],#1
CMP r2,#31 CMP r2,#' '
BGT %BT01 BCS %BT01
SUB r2,r1,r0 SUB r2,r1,r0
SUB r2,r2,#1 ; and we increased over the terminator SUB r2,r2,#1 ; and we increased over the terminator
LDMFD sp!, {pc} LDMFD sp!, {pc}
...@@ -769,6 +775,9 @@ add_prefix_ret_26 ...@@ -769,6 +775,9 @@ add_prefix_ret_26
TEQP pc, lr TEQP pc, lr
LDR pc, [sp], #4 LDR pc, [sp], #4
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Vector claimaints
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
find_handler_26 find_handler_26
STR lr, [sp, #-4]! STR lr, [sp, #-4]!
STR pc, [sp, #-4]! STR pc, [sp, #-4]!
...@@ -796,10 +805,11 @@ gbpb_handler_26 ...@@ -796,10 +805,11 @@ gbpb_handler_26
ORRS pc, lr, #V_bit ORRS pc, lr, #V_bit
gbpb_handler_32 gbpb_handler_32
CMP r0, #9 CMP r0, #OSGBPB_ReadDirEntries
MOVLO pc, lr ; V clear MOVLO pc, lr ; V clear
CMP r0, #13 ASSERT OSGBPB_ReadDirEntriesFileType > OSGBPB_ReadDirEntries
BLO file_handler_external_entry CMP r0, #OSGBPB_ReadDirEntriesFileType
BLS file_handler_external_entry
CMP r0, #0 ; V clear CMP r0, #0 ; V clear
MOV pc, lr MOV pc, lr
...@@ -1036,9 +1046,11 @@ copy_or_rename2 ...@@ -1036,9 +1046,11 @@ copy_or_rename2
BL strip_hats0 BL strip_hats0
B copy_or_rename3 B copy_or_rename3
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_GetClSize ; DDEUtils_GetClSize
; ------------------ ; ------------------
; Exit: R0 = size
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_getclsize doswi_getclsize
LDR r0, cli_size LDR r0, cli_size
...@@ -1047,6 +1059,7 @@ doswi_getclsize ...@@ -1047,6 +1059,7 @@ doswi_getclsize
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_GetCl ; DDEUtils_GetCl
; -------------- ; --------------
; Entry: R0 = pointer to buffer to copy into
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_getcl doswi_getcl
LDR r11, cli_buffer LDR r11, cli_buffer
...@@ -1076,6 +1089,7 @@ getcl1 ...@@ -1076,6 +1089,7 @@ getcl1
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_FlushCL ; DDEUtils_FlushCL
; ---------------- ; ----------------
; Entry: Nothing
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_flushcl doswi_flushcl
LDR r11, cli_buffer LDR r11, cli_buffer
...@@ -1096,6 +1110,7 @@ doswi_flushcl ...@@ -1096,6 +1110,7 @@ doswi_flushcl
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_SetClSize ; DDEUtils_SetClSize
; ------------------ ; ------------------
; Entry: R0 = size
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_setclsize doswi_setclsize
STMFD sp!, {r1, r2, r3, lr} STMFD sp!, {r1, r2, r3, lr}
...@@ -1135,6 +1150,7 @@ do_no_cli_buffer ...@@ -1135,6 +1150,7 @@ do_no_cli_buffer
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_SetCl ; DDEUtils_SetCl
; -------------- ; --------------
; Entry: R0 = pointer to null terminated command tail
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_setcl doswi_setcl
LDR r11, cli_buffer LDR r11, cli_buffer
...@@ -1218,6 +1234,7 @@ return_setv ...@@ -1218,6 +1234,7 @@ return_setv
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_ThrowbackEnd ; DDEUtils_ThrowbackEnd
; --------------------- ; ---------------------
; Entry: Nothing
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_throwbackend doswi_throwbackend
STMFD sp!, {r0-r4, r9, lr} STMFD sp!, {r0-r4, r9, lr}
...@@ -1254,6 +1271,7 @@ throwback_err ...@@ -1254,6 +1271,7 @@ throwback_err
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_ThrowbackRegister ; DDEUtils_ThrowbackRegister
; -------------------------- ; --------------------------
; Entry: R0 = task handle
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_throwbackregister doswi_throwbackregister
STMFD sp!, {r0, r9, lr} STMFD sp!, {r0, r9, lr}
...@@ -1271,6 +1289,7 @@ doswi_throwbackregister ...@@ -1271,6 +1289,7 @@ doswi_throwbackregister
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_ThrowbackUnregister ; DDEUtils_ThrowbackUnregister
; ---------------------------- ; ----------------------------
; Entry: R0 = task handle
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_throwbackunregister doswi_throwbackunregister
STMFD sp!, {r0, r9, lr} STMFD sp!, {r0, r9, lr}
...@@ -1289,6 +1308,7 @@ doswi_throwbackunregister ...@@ -1289,6 +1308,7 @@ doswi_throwbackunregister
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_ThrowbackStart ; DDEUtils_ThrowbackStart
; ----------------------- ; -----------------------
; Entry: Nothing
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_throwbackstart doswi_throwbackstart
STMFD sp!, {r0-r4, r9, lr} STMFD sp!, {r0-r4, r9, lr}
...@@ -1335,6 +1355,8 @@ throwback_add_prefix1 ...@@ -1335,6 +1355,8 @@ throwback_add_prefix1
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; DDEUtils_ThrowbackSend ; DDEUtils_ThrowbackSend
; ---------------------- ; ----------------------
; Entry: R0 = subreason code
; R2-R5 dependant on subreason
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
doswi_throwbacksend doswi_throwbacksend
STMFD sp!, {r0-r4, r9, lr} STMFD sp!, {r0-r4, r9, lr}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment