adapted to Kick Assembler, some documentation update

This commit is contained in:
FeralChild64 committed 2019-09-07 12:35:21 +02:00
1 parent ae23dbae7b
commit de27124b4f
198 files changed
+4181 -3976

No files matched your search

+22 -22
View File
@@ -1,42 +1,42 @@
;;
;; Kernal internal IEC routine
;;
;; - https://www.pagetable.com/?p=1031, https://github.com/mist64/cbmbus_doc
;;
//
// Kernal internal IEC routine
//
// - https://www.pagetable.com/?p=1031, https://github.com/mist64/cbmbus_doc
//
iec_cmd_open: ; similar to TKSA, but without turnaround
iec_cmd_open: // similar to TKSA, but without turnaround
jsr iec_check_channel_openclose
bcc +
bcc !+
jmp kernalerror_FILE_NOT_INPUT
*
!:
ora #$F0
;; FALLTROUGH
// FALLTROUGH
common_open_close_unlsn_second: ; common part of several commands
common_open_close_unlsn_second: // common part of several commands
sta IEC_TMP2
jsr iec_tx_command
bcs + ; branch if error
bcs !+ // branch if error
jmp iec_tx_command_finalize
*
!:
rts
iec_check_channel_openclose:
;; Due to OPEN/CLOSE/TKSA/SECOND command encoding (see https://www.pagetable.com/?p=1031),
;; allowed channels are 0-15; report error if out of range
// Due to OPEN/CLOSE/TKSA/SECOND command encoding (see https://www.pagetable.com/?p=1031),
// allowed channels are 0-15; report error if out of range
cmp #$10
bcc +
;; Workaround to allow reading executable files and disk directory
;; using OPEN routine - see https://www.pagetable.com/?p=273 for
;; example usage
bcc !+
// Workaround to allow reading executable files and disk directory
// using OPEN routine - see https://www.pagetable.com/?p=273 for
// example usage
cmp #$60
beq +
sec ; mark unsuitable channel number
beq !+
sec // mark unsuitable channel number
rts
*
clc ; mark suitable channel number
!:
clc // mark suitable channel number
rts