mirror of
https://github.com/datajerk/c2d.git
synced 2025-01-14 23:30:34 +00:00
minor optimizations
This commit is contained in:
parent
35da6e5d99
commit
00609d4106
@ -69,7 +69,7 @@ Windows/MinGW:
|
||||
|
||||
```
|
||||
usage: c2d [-vh?]
|
||||
c2d [-m] [-s start address override] input[.mon],[load_address] output.dsk
|
||||
c2d [-m] [-t filename] [-s start address override] input[.mon],[load_address] output.dsk
|
||||
|
||||
-h|? this help
|
||||
-m jump to monitor after booting
|
||||
@ -112,7 +112,7 @@ Yes. No input checking. Big Endian untested.
|
||||
|
||||
### The Ugly Stuff
|
||||
|
||||
c2d, Code to Disk, Version 0.4, Sun Apr 9 03:16:22 UTC 2017
|
||||
c2d, Code to Disk, Version 0.42, Sun Apr 9 03:16:22 UTC 2017
|
||||
|
||||
(c) 2012,2017 All Rights Reserved, Egan Ford (egan@sense.net)
|
||||
|
||||
|
34
asm/loader.s
34
asm/loader.s
@ -12,11 +12,12 @@ hipage = $B500
|
||||
rwtsprm = $B7E8 ; looked at dos 3.3 disk, not using $3E3 to find
|
||||
rwts = $B7B5
|
||||
preg = $48 ; mon p reg
|
||||
;trkcnt = $00 ; track counter
|
||||
;segcnt = $01 ; loop var
|
||||
;buffer = $02 ; MSB of RWTS buffer
|
||||
;secnum = $03 ; loop var
|
||||
;trknum = $04 ; loop var
|
||||
;;;run time
|
||||
trkcnt = $00 ; track counter
|
||||
segcnt = $01 ; loop var
|
||||
buffer = $02 ; MSB of RWTS buffer
|
||||
secnum = $03 ; loop var
|
||||
trknum = $04 ; loop var
|
||||
|
||||
|
||||
start:
|
||||
@ -63,7 +64,7 @@ trkloop:
|
||||
lda trkcnt
|
||||
bne fulltrack
|
||||
lda lastsector
|
||||
jmp subtrack
|
||||
bpl subtrack
|
||||
fulltrack:
|
||||
lda #$F
|
||||
subtrack:
|
||||
@ -114,13 +115,14 @@ loadpage:
|
||||
.org *+1
|
||||
nextjump:
|
||||
.org *+2
|
||||
trkcnt:
|
||||
.org *+1
|
||||
segcnt:
|
||||
.org *+1
|
||||
buffer:
|
||||
.org *+1
|
||||
secnum:
|
||||
.org *+1
|
||||
trknum:
|
||||
.org *+1
|
||||
;;; used for debug
|
||||
;trkcnt:
|
||||
; .org *+1
|
||||
;segcnt:
|
||||
; .org *+1
|
||||
;buffer:
|
||||
; .org *+1
|
||||
;secnum:
|
||||
; .org *+1
|
||||
;trknum:
|
||||
; .org *+1
|
||||
|
BIN
bin/c2d.exe
BIN
bin/c2d.exe
Binary file not shown.
4
c2d.c
4
c2d.c
@ -1,6 +1,6 @@
|
||||
/*
|
||||
|
||||
c2d, Code to Disk, Version 0.4, Sun Apr 9 03:16:22 UTC 2017
|
||||
c2d, Code to Disk, Version 0.42, Sun Apr 9 03:16:22 UTC 2017
|
||||
|
||||
(c) 2012,2017 All Rights Reserved, Egan Ford (egan@sense.net)
|
||||
|
||||
@ -53,7 +53,7 @@ Bugs:
|
||||
#include <sys/stat.h>
|
||||
#include "c2d.h"
|
||||
|
||||
#define VERSION "Version 0.4"
|
||||
#define VERSION "Version 0.42"
|
||||
#define INFILE argv[argc-2]
|
||||
#define OUTFILE argv[argc-1]
|
||||
#define BINARY 0
|
||||
|
2
c2d.h.0
2
c2d.h.0
@ -13,7 +13,7 @@ typedef struct d {
|
||||
|
||||
const char *usagetext="\n\
|
||||
usage: c2d [-vh?]\n\
|
||||
c2d [-m] [-s start address override] input[.mon],[load_address] output.dsk\n\
|
||||
c2d [-m] [-t filename] [-s start address override] input[.mon],[load_address] output.dsk\n\
|
||||
\n\
|
||||
-h|? this help\n\
|
||||
-m jump to monitor after booting\n\
|
||||
|
Loading…
x
Reference in New Issue
Block a user