Main Index Routine Index Memory Index
Previous Page Next Page


Routine $0733:   Measure (current -or- next following) Sync length (in X). (~CF:=0,[$BD]=A:=6 if Sync found)

This routine waits for the next Non-SYNC, the start of the following SYNC and counts X++ while over that SYNC mark (measure SYNC length). CF:=0, [$BD]=A:=6 if SYNC found.

JSR from $0530: 0733: B8 CLV JSR from $0488***: 0734: 50 FE BVC $0734 ; wait for byte-ready 0736: 20 9C 06 JSR $069C ; Waits for SYNC mark, CF=0 if SYNC found. 0739: B0 09 BCS $0744 ; immediate return if no SYNC found 073B: A9 06 LDA #$06 073D: 85 BD STA $BD ; [$BD]:=6 if SYNC found JSR from $0754: 073F: B8 CLV Jump from $0742: 0740: E8 INX 0741: EA NOP 0742: 50 FC BVC $0740 ; X++ while no byte-ready (while over SYNC) Jump from $0739: 0744: 60 RTS Previous Page / Next Page