# HG changeset patch # User roug # Date 1026413855 0 # Node ID 3a847d2b44920348ca2c6c93633ebb01f7f49124 # Parent 51cb8573849f73a7667756bc77cfa8cab82472a8 Cobbler, OS9Gen and format are all hardware dependent. diff -r 51cb8573849f -r 3a847d2b4492 level1/cmds/cobbler.asm --- a/level1/cmds/cobbler.asm Thu Jul 11 16:53:58 2002 +0000 +++ b/level1/cmds/cobbler.asm Thu Jul 11 18:57:35 2002 +0000 @@ -5,7 +5,7 @@ * * Ed. Comments Who YY/MM/DD * ------------------------------------------------------------------ -* 5 Original Microware distribution version +* 5 Original Dragon Data distribution version nam Cobbler ttl Make a bootstrap file @@ -20,15 +20,15 @@ rev set $01 mod eom,name,tylg,atrv,start,size u0000 rmb 1 -u0001 rmb 3 -u0004 rmb 1 +DevFd rmb 3 +BTLSN rmb 1 u0005 rmb 2 -u0007 rmb 2 -u0009 rmb 20 +BtSiz rmb 2 +sttbuf rmb 20 u001D rmb 2 u001F rmb 10 u0029 rmb 2 -u002B rmb 32 +devnam rmb 32 u004B rmb 16 u005B rmb 1 u005C rmb 7 @@ -57,86 +57,86 @@ fcb C$LF fcc " This disk will not bootstrap." fcb C$CR -L00F6 fcc "OS9Boot " +BfNam fcc "OS9Boot " fcb $FF start equ * clrb - lda #$2F + lda #'/ cmpa ,x - lbne L0237 + lbne Usage os9 F$PrsNam - lbcs L0237 - lda #$2F + lbcs Usage + lda #'/ cmpa ,y - lbeq L0237 - leay L00F6,pcr - lda #$2F + leay >BfNam,pcr + lda #'/ L0140 sta ,x+ lda ,y+ bpl L0140 - lda $0068 subd >$0066 tfr d,y - std $0066 lda L0015,pcr + +Usage leax >L0015,pcr wrerr pshs b lda #$02 ldy #$0100 @@ -190,23 +192,30 @@ comb puls b Exit os9 F$Exit -L024C leax >L00B6,pcr + +Fragd leax >L00B6,pcr clrb bra wrerr -L0253 leax >L004E,pcr + +ETrack leax >L004E,pcr clrb bra wrerr -L025A leax >L006A,pcr +* +* Write warning +NotAllo leax >L006A,pcr clrb bra wrerr -L0261 pshs u +* +* Update the identification sector on LSN 0 +* +UpLSN0 pshs u ldx #$0000 - ldu #$0015 - lda L00F0,pcr - lda #$2F + leay >BfNam,pcr + lda #'/ L013A sta ,x+ lda ,y+ bpl L013A - lda L006B,pcr clrb - lbra L02CE -L015E lda $0068 subd >$0066 tfr d,y - std $0066 lda L0015,pcr -L02CE pshs b + +Usage leax >L0015,pcr +wrerr pshs b lda #$02 ldy #$0100 os9 I$WritLn comb puls b -L02DC os9 F$Exit -L02DF leax >L00CF,pcr +Exit os9 F$Exit + +Fragd leax >L00CF,pcr clrb - bra L02CE -L02E6 leax >L004F,pcr + bra wrerr + +ETrack leax >L004F,pcr clrb - bra L02CE + bra wrerr + L02ED leax >L008C,pcr clrb - bra L02CE -L02F4 pshs u + bra wrerr + +UpLSN0 pshs u ldx #$0000 - ldu #$0015 - lda Aborted,pcr lbra L066D diff -r 51cb8573849f -r 3a847d2b4492 level1/cmds/format_d64.asm --- a/level1/cmds/format_d64.asm Thu Jul 11 16:53:58 2002 +0000 +++ b/level1/cmds/format_d64.asm Thu Jul 11 18:57:35 2002 +0000 @@ -766,7 +766,7 @@ clra os9 I$ReadLn bcc L052F - cmpa #$D3 + cmpa #E$EOF bne L050B L0528 leax >Aborted,pcr lbra L0676 diff -r 51cb8573849f -r 3a847d2b4492 level1/cmds/os9gen.asm --- a/level1/cmds/os9gen.asm Thu Jul 11 16:53:58 2002 +0000 +++ b/level1/cmds/os9gen.asm Thu Jul 11 18:57:35 2002 +0000 @@ -32,7 +32,7 @@ mod eom,name,tylg,atrv,start,size u0000 rmb 2 u0002 rmb 1 -u0003 rmb 1 +DevFd rmb 1 u0004 rmb 1 u0005 rmb 1 u0006 rmb 2 @@ -100,13 +100,13 @@ decb bpl L0175 sty L0143,pcr @@ -131,7 +131,7 @@ ldx #$0000 stx L00FC,pcr clrb bra L035F -L0376 pshs u - lda L00B0,pcr clrb bra L035F diff -r 51cb8573849f -r 3a847d2b4492 level1/cmds/os9gen_cc.asm --- a/level1/cmds/os9gen_cc.asm Thu Jul 11 16:53:58 2002 +0000 +++ b/level1/cmds/os9gen_cc.asm Thu Jul 11 18:57:35 2002 +0000 @@ -23,7 +23,7 @@ mod eom,name,tylg,atrv,start,size u0000 rmb 2 u0002 rmb 1 -u0003 rmb 1 +DevFd rmb 1 u0004 rmb 1 u0005 rmb 1 u0006 rmb 2 @@ -128,7 +128,7 @@ decb bpl L020E sty u0218,u lbne L0577 - lda L00F6,pcr clrb lbra L0507