Commit aca95374 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Fixed output of *ROMModules so everything lines up properly.

Detail:
  The code for *ROMModules uses OS_PrettyPrint, which seems unconcerned
    by such trivial things as leading spaces, which accounts for the
    misaligned output.  The code now starts by using ASCII 31 (hard
    space for OS_PrettyPrint's purposes) as the leading indent character
    to avoid confusion.
Admin:
  Tested on desktop build in both command-line and TaskWindows.

Version 5.20. Tagged as 'Kernel-5_20'
parent 5ff82b71
......@@ -6,9 +6,9 @@
GBLS Module_MinorVersion
GBLS Module_Date
GBLS Module_FullVersion
Module_MajorVersion SETS "5.19"
Module_Version SETA 519
Module_MajorVersion SETS "5.20"
Module_Version SETA 520
Module_MinorVersion SETS ""
Module_Date SETS "08 Mar 2000"
Module_FullVersion SETS "5.19"
Module_FullVersion SETS "5.20"
END
/* (5.19)
/* (5.20)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 5.19
#define Module_MajorVersion_CMHG 5.20
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 08 Mar 2000
#define Module_MajorVersion "5.19"
#define Module_Version 519
#define Module_MajorVersion "5.20"
#define Module_Version 520
#define Module_MinorVersion ""
#define Module_Date "08 Mar 2000"
#define Module_FullVersion "5.19"
#define Module_FullVersion "5.20"
......@@ -222,16 +222,21 @@ ROMModules_Code ENTRY
MOV r5, r1 ; save r1 and r2 for next call to OS_Module
MOV r10, r2
MOV r0, r1
MOV r2, #4
SUB sp, sp, #4
MOV r1, sp
SWI XOS_ConvertCardinal2
ADD sp, sp, #4
SUB r12, r1, r0
LDR r1, =GeneralMOSBuffer
MOV r2, #256
MOV r0, #31
RSBS r12, r12, #3
15 BLNE %FT20
SUBS r12, r12, #1
BPL %BT15
MOV r0, r5
SWI XOS_ConvertCardinal2
SUB r12, r1, r0 ; characters in buffer
02
CMP r12, #3 ; tab out to 3 characters
SWICC XOS_WriteI+" "
EXIT VS
ADDCC r12, r12, #1
BCC %BT02
MOV r0, #" "
BL %FT20 ; add space
CMP r10, #-1
......
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