;Implementation of SoftMMU - xinfo ;================================= #include "sm.h.txt" .global xinfo ;----- xinfo: ;----- ;Base systems #ifdef sm_6502 #define smopt 0 #endif #ifdef sm_c64bank #define smopt 1 #endif #ifdef sm_c128 #define smopt 2 #endif #ifdef sm_c128meg #define smopt 3 #endif #ifdef sm_scpu64 #define smopt 4 #endif #ifdef sm_scpu128 #define smopt 5 #endif ;Expansions #ifdef sm_reu #define smopt1 $10 #else #define smopt1 $00 #endif #ifdef sm_georam #define smopt2 $20 #else #define smopt2 $00 #endif #ifdef sm_superram #define smopt3 $40 #else #define smopt3 $00 #endif #ifdef sm_ramlink #define smopt4 $80 #else #define smopt4 $00 #endif ldx #$10 ;SoftMMU v1.0 ldy #$00 ;LUnix NG lda #smopt+smopt1+smopt2+smopt3+smopt4 ;Base system & expansion options rts