diff --git a/libsrc/apple2/extra/iobuf-0800.s b/libsrc/apple2/extra/iobuf-0800.s index 386d91988..02685fae7 100644 --- a/libsrc/apple2/extra/iobuf-0800.s +++ b/libsrc/apple2/extra/iobuf-0800.s @@ -27,11 +27,12 @@ initiobuf: ; Mark all remaining table entries as used tax lda #$FF +: cpx #MAX_FDS + bcc :+ + rts : sta table,x inx - cpx #MAX_FDS - bcc :- - rts + bne :-- ; Branch always ; ------------------------------------------------------------------------