From 4db1126b0111de08b4f09cecb51cd04a117bf0f2 Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Fri, 4 Jan 2019 12:59:59 +0100 Subject: [PATCH] C64: Fix kernal definitions --- include/c64_kernal.mfk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/c64_kernal.mfk b/include/c64_kernal.mfk index efe18592..21f2098e 100644 --- a/include/c64_kernal.mfk +++ b/include/c64_kernal.mfk @@ -13,7 +13,7 @@ asm void open() @$FFC0 extern // CLOSE. Close file. // Input: A = Logical number. -asm void close(byte a) @$FFC0 extern +asm void close(byte a) @$FFC3 extern // SETLFS. Set file parameters. // Input: A = Logical number; X = Device number; Y = Secondary address. @@ -21,16 +21,16 @@ asm void setlfs(byte a, byte x, byte y) @$FFBA extern // SETNAM. Set file name parameters. // Input: A = File name length; X/Y = Pointer to file name. -asm void setnam(word yx, byte a) @$FFBA extern +asm void setnam(word xy, byte a) @$FFBD extern // LOAD. Load or verify file. (Must call SETLFS and SETNAM beforehands.) // Input: A: 0 = Load, 1-255 = Verify; X/Y = Load address (if secondary address = 0). // Output: Carry: 0 = No errors, 1 = Error; A = KERNAL error code (if Carry = 1); X/Y = Address of last byte loaded/verified (if Carry = 0). -asm clear_carry load(byte a, word yx) @$FFD5 extern +asm clear_carry load(byte a, word xy) @$FFD5 extern // SAVE. Save file. (Must call SETLFS and SETNAM beforehands.) // Input: A = Address of zero page register holding start address of memory area to save; X/Y = End address of memory area plus 1. // Output: Carry: 0 = No errors, 1 = Error; A = KERNAL error code (if Carry = 1). -asm clear_carry save(byte a, word yx) @$FFD5 extern +asm clear_carry save(byte a, word xy) @$FFD8 extern word irq_pointer @$314