Commit 4560e252 authored by Kevin Bracey's avatar Kevin Bracey
Browse files

Optimised to do word at a time data transfer sometimes, rather than always...

Optimised to do word at a time data transfer sometimes, rather than always doing everything one byte at a time.

Version 0.18. Tagged as 'ResourceFS-0_18'
parent 59a37a39
......@@ -5,8 +5,8 @@
GBLA Module_Version
GBLS Module_MinorVersion
GBLS Module_Date
Module_MajorVersion SETS "0.17"
Module_Version SETA 17
Module_MajorVersion SETS "0.18"
Module_Version SETA 18
Module_MinorVersion SETS ""
Module_Date SETS "08 Sep 1998"
Module_Date SETS "09 Sep 1998"
END
/* (0.17)
/* (0.18)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.17
#define Module_MajorVersion_CMHG 0.18
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 08 Sep 1998
#define Module_Date_CMHG 09 Sep 1998
#define Module_MajorVersion "0.17"
#define Module_Version 17
#define Module_MajorVersion "0.18"
#define Module_Version 18
#define Module_MinorVersion ""
#define Module_Date "08 Sep 1998"
#define Module_Date "09 Sep 1998"
......@@ -40,7 +40,8 @@
; Generate a file index (speed enhancement)
; 12-Mar-92 0.14 JSR Misc bugs from failure to initialise workspace. G-RO-5512.
; 16-Aug-95 0.15 RWB Allow booting from ResourceFS, provides *Run !Boot as default and only option
; 08-Sep-98 0.16 KJB Cope with registrations above &80000000.
; 08-Sep-98 0.17 KJB Cope with registrations above &80000000.
; 09-Sep-98 0.18 KJB Optimise word-aligned case of data reads.
;
Module_BaseAddr
......@@ -1172,9 +1173,23 @@ ROMFS_MediaToBuffer ENTRY
ADDLT R3,R3,R14 ; reduce number of bytes to transfer
ADD R1, R1, R4 ; start of actual data
ORR R14, R1, R2 ; is it nicely word-aligned?
ORR R14, R14, R3
TST R14, #3
BNE %FT05
TEQ R3, #0
03
LDRNE R0, [R1], #4 ; all word aligned
STRNE R0, [R2], #4
SUBS R3, R3, #4
BNE %BT03
EXITS
05 TEQ R3, #0
10
LDRNEB R0, [R1], #1 ; alignment not guaranteed
LDRNEB R0, [R1], #1 ; not aligned
STRNEB R0, [R2], #1
SUBS R3, R3, #1
BNE %BT10
......
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