Skip to content

Commit deb4208

Browse files
mode5 and exit code
1 parent 97b6a07 commit deb4208

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

asminc/rp6502.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ RIA_ATTR_RLN_LENGTH := $03
8181
RIA_ATTR_LRAND := $04
8282
RIA_ATTR_BEL := $05
8383
RIA_ATTR_LAUNCHER := $06
84+
RIA_ATTR_EXIT_CODE := $07
8485

8586
; 6522 VIA
8687
VIA := $FFD0 ; VIA base address

include/rp6502.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ long __fastcall__ ria_call_long (unsigned char op);
139139
#define RIA_ATTR_LRAND 0x04
140140
#define RIA_ATTR_BEL 0x05
141141
#define RIA_ATTR_LAUNCHER 0x06
142+
#define RIA_ATTR_EXIT_CODE 0x07
142143

143144
/* C API for the operating system. */
144145

@@ -293,4 +294,11 @@ typedef struct
293294
unsigned char has_opacity_metadata; // bool
294295
} vga_mode4_asprite_t;
295296

297+
typedef struct {
298+
int x_pos_px;
299+
int y_pos_px;
300+
unsigned xram_sprite_ptr;
301+
unsigned palette_ptr;
302+
} vga_mode5_sprite_t;
303+
296304
#endif /* _RP6502_H */

libsrc/rp6502/initenv.s

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
;
2+
; 2023, Rumbledethumps
3+
;
4+
; initenv - stub for getenv()/putenv() support.
5+
; The rp6502 target has no host environment variables,
6+
; so this constructor is intentionally empty.
7+
;
8+
9+
.export initenv
10+
11+
.segment "ONCE"
12+
13+
.proc initenv
14+
15+
rts
16+
17+
.endproc

0 commit comments

Comments
 (0)