Detetecting current device #

Started by OzOne, March 17, 2007, 11:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

OzOne

Location $BA (on both the 64 and 128) contains the current device number. Use this instead of forcing e.g. drive #8 when doing drive accesses (use LDX $BA instead of LDX #8 before a JSR SETLFS).