[cc65] C64 drive direct access question

From: Raj Wurttemberg <rajw1c64.us>
Date: 2005-10-10 21:03:59
I would like to use the "M-W" command to send commands from the C64 to the
1541 drive but I'm a little stuck on the syntax I need to use. The BASIC 2.0
command is:

(from page 105 of "Inside Commodore DOS")

t=18 : rem track
s=0 : rem sector
job=176 : rem $b0 = seek


How to I do the chr$(x) with cbm_write? Is this correct?

cbm_write(15, "m-w\x06\x00\x02\x18\x00", 8);


To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Oct 10 21:30:45 2005

This archive was generated by hypermail 2.1.8 : 2005-10-10 21:30:49 CEST