0E is JMP direct page, so 7E is easier to use.
Also change it in the not-finished zero trap.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
extern irqflags_t di(void);
extern void irqrestore(irqflags_t f);
-#define EMAGIC 0x0E /* Header of executable (JMP) */
+#define EMAGIC 0x7E /* Header of executable (JMP) */
#define EMAGIC_2 0x20 /* BRA */
/* Allow a minimum of 512 bytes gap between stack and top of allocations */
#define brk_limit() (udata.u_syscall_sp - 512)
bne in_kernel
; we're not in kernel mode, check for signals and fault
- cmpa #0x0E ; JMP at 0
+ cmpa #0x7E ; JMP at 0
beq nofault
jsr map_process_always ; map the process
- lda #0x0E ; put it back
+ lda #0x7E ; put it back
sta 0 ; write
jsr map_kernel ; restore the map
ldx #11 ; SIGSEGV
_program_vectors:
pshs cc
orcc #0x10
- lda #0x0E
+ lda #0x7E
sta 0 ; NULL pointer trap
; FIXME: add a target address for NULL execution
ldd #0xFFD5
0xC3 xx xx - Z80 with 0x100 entry
0x4C xx xx - 6502
- 0x0E xx xx - 6809
+ 0x7E xx xx - 6809
followed by a base page for the executable