Skip to content

Commit 9da7ecc

Browse files
committed
Update RIA SYSCALL API addresses
1 parent 1203c48 commit 9da7ecc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/chips/ria816.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ extern "C" {
141141
#define RIA816_IRQ_ENABLE (0x2C) // RIA interrupts enable
142142
#define RIA816_IRQ_STATUS (0x2D) // Interrupt Controller status
143143
#define RIA816_CPU_N_IRQB (0x2E) // 65816 vector.
144-
#define RIA816_API_STACK (0x30) // 512 bytes for passing call parameters.
145-
#define RIA816_API_OP (0x31) // Write the API operation id here to begin a kernel call.
146-
#define RIA816_API_ERRNO (0x32) // API error number.
147-
#define RIA816_API_BUSY (0x33) // Bit 7 high while operation is running.
144+
#define RIA816_API_OP (0x30) // Write the API operation id here to begin a kernel call.
145+
#define RIA816_API_RET_HI (0x31) // High byte of 16 bit return value. Otherwise `0`.
146+
#define RIA816_API_STACK (0x32) // 512 bytes for passing call parameters.
147+
#define RIA816_API_STATUS (0x33) // Bit 7 high while operation is running. Bit 0 high when ERRNO.
148148
#define RIA816_CPU_E_COP (0x34) // 65816 vector.
149149
#define RIA816_EXT_IO (0x36) // Bitmap of 8x 32byte chunks for mapping RAM into I/O area.
150150
#define RIA816_EXT_MEM (0x37) // reserved for future use (MMU)

0 commit comments

Comments
 (0)