Browse Source

ufddos80.asm: add a few more symbolic values

Insert some more symbolic values where they make sense.

No binary change.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin 1 year ago
parent
commit
ecde5a99f8
1 changed files with 10 additions and 7 deletions
  1. 10 7
      rv32/roms/abc80/asmsrc/ufddos80.asm

+ 10 - 7
rv32/roms/abc80/asmsrc/ufddos80.asm

@@ -1568,19 +1568,19 @@ abort_msg:      ;; 6782 <- 65c7
 ;;;    defm "XX ; 2-letter name
 ;;;
 devdes_rom:     ;; 678a <- 6069 6560
-                defb 0x0c               ; 678a .    0c
+                defb 12                 ; 678a .    0c
                 defb 0                  ; 678b .    00
                 .ascii "DR"             ; 678c DR   44 52
-                defb 0x24               ; 678e $    24
+                defb 36                 ; 678e $    24
                 defb 5                  ; 678f .    05
                 .ascii "HD"             ; 6790 HD   48 44
-                defb 0x6c               ; 6792 l    6c
+                defb 0x40 + 44          ; 6792 l    6c
                 defb 2                  ; 6793 .    02
                 .ascii "MF"             ; 6794 MF   4d 46
-                defb 0xad               ; 6796 .    ad
+                defb 0x80 + 45          ; 6796 .    ad
                 defb 0                  ; 6797 .    00
                 .ascii "MO"             ; 6798 MO   4d 4f
-                defb 0x6e               ; 679a n    6e
+                defb 0x40 + 46          ; 679a n    6e
                 defb 2                  ; 679b .    02
                 .ascii "SF"             ; 679c SF   53 46
                 defb 0x00               ; 679e .    00
@@ -1704,7 +1704,7 @@ tmpixmap:       ;; 682b <- 67ac 67b5 67da
 autostart_setup: ;; 683d <- 6597
                 ld hl,autostart_cmd     ; 683d !.o  21 9b 6f
                 ld de,LINE_BUF          ; 6840 .@.  11 40 fe
-                ld bc,0x0014            ; 6843 ...  01 14 00
+                ld bc,autostart_cmd_len ; 6843 ...  01 14 00
                 ldir                    ; 6846 ..   ed b0
                 ret                     ; 6848 .    c9
 autostart:      ;; 6849 <- 686f
@@ -2830,7 +2830,9 @@ _BLKTF:         ;; 6f75 <- 6042 62d3 6b5b 6c9b 6f79
                 add hl,hl               ; 6f98 )    29
                 jr .L6f96               ; 6f99 ..   18 fb
 autostart_cmd:  ;; 6f9b <- 683d
-                .ascii "RUN START80\r\r\r\r\r\r\r\r\r" ; 6f9b <20 bytes>
+                .ascii "RUN START80\r"
+                .org 0xfaf, 13
+autostart_cmd_len = . - autostart_cmd
 
 ;;;
 ;;; Formatting information for DOSGEN
@@ -2899,6 +2901,7 @@ find_q0s:       ;; 6ff0 <- 6fcd
 ;;;
 ;;; CALL entry points for random access on ABC80
 ;;;
+                .org 0xffa, 0xff
 RNDSETUP:       jr _RNDSETUP            ; 6ffa ..   18 c9
 RNDREAD:        jr _RNDREAD             ; 6ffc ..   18 ba
 RNDWRITE:       jr _RNDWRITE            ; 6ffe ..   18 ba