Home » CEEFAX disks » telesoftware8.adl » 13-08-88/STATUS » Compare

Compare 13-08-88/STATUS with 13-08-88/OUTPUT

File: CEEFAX disks » telesoftware8.adl » 13-08-88/STATUS
Compared with: CEEFAX disks » telesoftware8.adl » 13-08-88/OUTPUT
Similarity: 53% of bytes duplicated

32 of 36 lines (90.1%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

13-08-88/STATUS 13-08-88/OUTPUT
10REM: STATUS 10REM: OUTPUT
20oswrch=&FFEE 20oswrch=&FFEE
30osword=&FFF1 30osword=&FFF1
40DIM mcode &100 40DIM mcode &100
50FOR pass = 0 TO 2 STEP 2 50FOR pass = 0 TO 2 STEP 2
60P%=mcode 60P%=mcode
70[OPT pass 70[OPT pass
80LDA #&7F 80LDA #&7F
90LDX #block MOD 256 90LDX #block MOD 256
100LDY #block DIV 256 100LDY #block DIV 256
110JSR osword 110JSR osword
120RTS 120RTS
130.block 130.block
140EQUB &FF \ current drive 140EQUB &FF \ current drive
150EQUD &00 \ does not matter 150EQUD &00 \ does not matter
160EQUB &00 \ 0 parameters 160EQUB &01 \ 1 parameter
170EQUB &6C \ read status command 170EQUB &7D \ read special register command
180EQUB &23 \ drive control output register
180.result 190.result
190EQUB &00 \ result byte 200EQUB &00 \ result byte
200.binary 210.binary
210LDX #8 220LDX #8
220.loop 230.loop
230LDA #ASC("0") 240LDA #ASC("0")
240ASL result 250ASL result
250ADC #&00 260ADC #&00
260JSR oswrch 270JSR oswrch
270DEX 280DEX
280BNE loop 290BNE loop
290RTS 300RTS
300] 310]
310NEXT 320NEXT
320CALL mcode 330CALL mcode
330PRINT"Result = &";~?result;", %"; 340PRINT"Result = &";~?result;", %";
340CALL binary 350CALL binary
350PRINT 360PRINT