Reading the error channel of a disk drive with low-level commands. #482
Whammo
started this conversation in
Show and tell
Replies: 2 comments
-
Prototypes for IEC commands \ tksa and second is $60 for
\ open filename, $e0 for close
\ and $f0 for open. All or sa
: listen ( dv -- )
ar c! $ffb1 sys ;
: second ( sa -- )
ar c! $ff93 sys ;
: talk ( dv -- )
ar c! $ffb4 sys ;
: tksa ( sa -- )
ar c! $ff96 sys ;
: unlisten ( -- )
$ffae sys ;
: untalk ( -- )
$ffab sys ;
: ciout ( chr -- )
ar c! $ffa8 sys ;
: acptr ( -- chr )
$ffa5 sys
ar c@ ; EDIT: Stacking commands are hoop-jumping. |
Beta Was this translation helpful? Give feedback.
0 replies
-
So, require io
: iqt readst if quit then ;
\ prototype error catch
: ds
0 $90 c! \ st = 0
$ba c@ listen iqt \ current device
$6f second iqt \ data channel
unlisten iqt \ turn around
$ba c@ talk iqt \ current device
$6f tksa iqt \ data channel
acptr readst begin
0= while emit
acptr readst repeat
emit untalk cr ; \ error channel needs no open or close |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ported (copied) from:
https://codebase64.org/doku.php?id=base:reading_the_error_channel_of_a_disk_drive
Beta Was this translation helpful? Give feedback.
All reactions