Mercurial > hg > Members > kono > nitros9-code
diff level1/cmds/error.asm @ 938:cef89b8a4241
Fixed some bad assembler assumptions
author | boisy |
---|---|
date | Tue, 21 Jan 2003 05:26:20 +0000 |
parents | 9f5945771770 |
children | 5c80e10a5d03 |
line wrap: on
line diff
--- a/level1/cmds/error.asm Tue Jan 21 04:31:22 2003 +0000 +++ b/level1/cmds/error.asm Tue Jan 21 05:26:20 2003 +0000 @@ -46,7 +46,7 @@ bsr open bcs exit pshs u - ldu #parbuff point to buffer + leau parbuff,u point to buffer entry0 lda ,x+ cmpa #C$SPAC is it a space (between parameters?) beq entry1 @@ -60,7 +60,7 @@ tfr u,y puls u sty <endptr store end of all parameters - ldx #parbuff load address of parbuff into X + leax parbuff,u load address of parbuff into X stx <prmptr save parameter pointer entry2 lda ,x bne entry3 @@ -100,13 +100,13 @@ readlin pshs x,y lda <path get file path number ldy #256 read max 256 bytes - ldx #filbuff into memory pointed to by filbuff + leax filbuff,u into memory pointed to by filbuff os9 I$ReadLn puls x,y,pc print pshs x,y,a lda #1 STDOUT - ldx #filbuff point to buffer + leax filbuff,u point to buffer ldy #256 max of 256 chars os9 I$WritLn puls x,y,a,pc @@ -123,7 +123,7 @@ compare pshs x,y clr <same comparison indicator ldx prmptr get address of next cmd line param - ldy #filbuff point to file buffer + leay filbuff,u point to file buffer comp0 lda ,x+ get char from cmd line beq comp1 is it null (end of param) cmpa ,y+ compare to file buffer