Merge pull request #368 from oliverschmidt/master

Saved another byte ;-)
This commit is contained in:
Oliver Schmidt 2013-10-03 13:35:27 -07:00
commit a642a26e4a
2 changed files with 4 additions and 6 deletions

View file

@ -206,9 +206,8 @@ fixup13:lda rxtxreg
jsr adjustcnt
; Is bufsize < cnt ?
sec
lda bufsize
sbc cnt
cmp cnt
lda bufsize+1
sbc cnt+1
bcs :+
@ -334,6 +333,7 @@ adjustcnt:
adjustptr:
lda cnt
ldx cnt+1
eor #$FF ; Two's complement part 1
tay
iny ; Two's complement part 2
@ -345,7 +345,6 @@ adjustptr:
lda bufaddr+1
sbc #$00
sta ptr+1
ldx cnt+1
rts
;---------------------------------------------------------------------

View file

@ -248,9 +248,8 @@ fixup20:lda ethdata
sta len+1
; Is bufsize < len ?
sec
lda bufsize
sbc len
cmp len
lda bufsize+1
sbc len+1
bcs :+
@ -389,6 +388,7 @@ exit:
adjustptr:
lda len
ldx len+1
eor #$FF ; Two's complement part 1
tay
iny ; Two's complement part 2
@ -400,7 +400,6 @@ adjustptr:
lda bufaddr+1
sbc #$00
sta ptr+1
ldx len+1
rts
;---------------------------------------------------------------------