]> git.sur5r.net Git - cc65/commitdiff
Cleanups for Creativision.
authorChristian Groessler <chris@groessler.org>
Wed, 1 Feb 2017 18:46:04 +0000 (19:46 +0100)
committerChristian Groessler <chris@groessler.org>
Wed, 1 Feb 2017 19:09:03 +0000 (20:09 +0100)
22 files changed:
cfg/creativision.cfg
libsrc/creativision/_scrsize.s
libsrc/creativision/boxchars.inc
libsrc/creativision/cclear.s
libsrc/creativision/cgetc.s
libsrc/creativision/chline.s
libsrc/creativision/clrscr.s
libsrc/creativision/color.s
libsrc/creativision/cputc.s
libsrc/creativision/gotox.s
libsrc/creativision/gotoxy.s
libsrc/creativision/joy.s
libsrc/creativision/libref.s
libsrc/creativision/mainargs.s
libsrc/creativision/psg.s
libsrc/creativision/sysuname.s
libsrc/creativision/wherex.s
libsrc/creativision/wherey.s
src/ca65/main.c
src/cc65/main.c
src/common/target.c
src/common/target.h

index 9122ccd42baf6a8b0b622c34242a2e8737d1c964..06e39b36ffdcb73a8612838b6dde52571ecb740f 100644 (file)
@@ -12,6 +12,7 @@ SEGMENTS {
     VECTORS:  load = ROM, run = RAM, type = rw,  define = yes;
     DATA:     load = ROM, run = RAM, type = rw,  define = yes,                 start = $0204;
     BSS:      load = RAM,            type = bss, define = yes;
+    ONCE:     load = ROM,            type = ro,                optional = yes;
     CODE:     load = ROM,            type = ro;
     INIT:     load = ROM,            type = ro;
     RODATA:   load = ROM,            type = ro;
index fdcc7fc60a7ce9b3b413e567c8c7547b25c84c18..9e4ce53c7ffd8c1131584901f54c4651c4844a51 100644 (file)
@@ -2,14 +2,14 @@
 ;** _scrsize.s
 ;*
 
-    .export             screensize
+        .export screensize
     
-    .include    "creativision.inc"
+        .include        "creativision.inc"
     
 .proc   screensize
 
-    ldx         #SCREEN_COLS
-    ldy         #SCREEN_ROWS
-    rts
+        ldx     #SCREEN_COLS
+        ldy     #SCREEN_ROWS
+        rts
         
 .endproc
index 0916d49ce4ab024f391ed397347201a0b0f785ce..45484a5d2a8c9c24ead94a9ecc40e48c955120ae 100644 (file)
@@ -1,62 +1,62 @@
 ; Boxchars
 
 boxchars:
-    ; Vertical Line
-    .byte       $18     
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $18
+        ; Vertical Line
+        .byte   $18     
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $18
 
-    ; Horizontal Line
-    .byte       0
-    .byte       0
-    .byte       0
-    .byte       $ff
-    .byte       0
-    .byte       0
-    .byte       0
-    .byte       0
-    
-    ; Top Left
-    .byte       0
-    .byte       0
-    .byte       0
-    .byte       $1f
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $18     
-    
-    ; Top Right
-    .byte       0
-    .byte       0
-    .byte       0
-    .byte       $F8
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $18     
+        ; Horizontal Line
+        .byte   $00
+        .byte   $00
+        .byte   $00
+        .byte   $FF
+        .byte   $00
+        .byte   $00
+        .byte   $00
+        .byte   $00
 
-    ; Bottom Left
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $1F
-    .byte       0
-    .byte       0
-    .byte       0
-    .byte       0       
+        ; Top Left
+        .byte   $00
+        .byte   $00
+        .byte   $00
+        .byte   $1F
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $18     
 
-    ; Bottom Right
-    .byte       $18
-    .byte       $18
-    .byte       $18
-    .byte       $F8
-    .byte       0
-    .byte       0
-    .byte       0
-    .byte       0       
+        ; Top Right
+        .byte   $00
+        .byte   $00
+        .byte   $00
+        .byte   $F8
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $18     
+
+        ; Bottom Left
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $1F
+        .byte   $00
+        .byte   $00
+        .byte   $00
+        .byte   $00       
+
+        ; Bottom Right
+        .byte   $18
+        .byte   $18
+        .byte   $18
+        .byte   $F8
+        .byte   $00
+        .byte   $00
+        .byte   $00
+        .byte   $00       
index 507c072bd41b66c5826042670475132bd25409b5..953ec8ce8d4ce253dbd250252f38629bb5485b96 100644 (file)
@@ -3,27 +3,24 @@
 ;* void cclear (unsigned char length);
 ;*
 
-    .export     _cclearxy, _cclear
-    .import     popa, _gotoxy, cputdirect
-    .importzp   tmp1
-    
+        .export     _cclearxy, _cclear
+        .import     popa, _gotoxy, cputdirect
+        .importzp   tmp1
+
 _cclearxy:
-    pha        ; Save length
-    jsr         popa    ; get Y
-    jsr         _gotoxy
-    pla
-    
+        pha             ; Save length
+        jsr     popa    ; get Y
+        jsr     _gotoxy
+        pla
+
 _cclear:
-    cmp         #0      ; Zero length?
-    beq         L2
-    sta         tmp1
-    
-L1:     
-    lda         #$20    ; Space
-    jsr         cputdirect
-    dec         tmp1
-    bne         L1
-    
-L2:     rts
+        cmp     #0      ; Zero length?
+        beq     L2
+        sta     tmp1
 
-    
+L1:     lda     #$20    ; Space
+        jsr     cputdirect
+        dec     tmp1
+        bne     L1
+
+L2:     rts
index f1e89942a536581e44a8aee8c17169451e2c0a1f..12831b4b9fa8665691a0437b02adeac0eb1c82d1 100644 (file)
@@ -1,17 +1,14 @@
 ;* cgetc
 
-    .export   _cgetc
-    .include  "creativision.inc"
-    
+        .export         _cgetc
+        .include        "creativision.inc"
+
 _cgetc:
-    lda #$80
-    
-L1:     
-    bit ZP_KEYBOARD
-    bpl L1
-    
-    lda ZP_KEYBOARD
-    and #$7f
-    rts
-    
-    
+        lda     #$80
+
+L1:     bit     ZP_KEYBOARD
+        bpl     L1
+
+        lda     ZP_KEYBOARD
+        and     #$7F
+        rts
index c206180e0a21292a16cf553cf191fde28d39970d..bef36e1fefc2ff5375c349c3dfac2ab2bf008353 100644 (file)
@@ -6,7 +6,7 @@
         .importzp       tmp1
 
         .include        "creativision.inc"
-                                 
+
 _chlinexy:
         pha                     ; Save the length
         jsr     popa            ; Get y
index ef800a9bdbdaea0958d6f4278ee2369f95528eaa..9e723834546c4eb2522f8cdf3733be2e2c2f65b4 100644 (file)
@@ -4,38 +4,38 @@
 ;* NB: All screen functions assume Graphics Mode 1 in a default configuration.
 ;* Therefore, this is hard coded to use $1000-$12FF as screen VRAM.
 
-    .export     _clrscr
-    .include    "creativision.inc"
-    
+        .export         _clrscr
+        .include        "creativision.inc"
+
 _clrscr:
 
-    sei         ; Disable interrupts. Default INT handler reads VDP_STATUS
-                ; and would lose any setup done here.
-                
-    lda         #$00    ; VRAM offset low
-    sta         VDP_CONTROL_W
-    
-    lda         #$50    ; VRAM offset high ($10 OR $40)
-    sta         VDP_CONTROL_W
-    
-    lda         #$C0    ; Space from ROM setup
-    
-    ldx         #0
-    ldy         #3
-    
-L1:     sta             VDP_DATA_W
-    inx
-    bne         L1
-    dey
-    bne         L1
-    
-    cli                         ; Let interrupts go again
-    
-    lda         #0
-    sta         CURSOR_X
-    sta         CURSOR_Y
-    sta         <SCREEN_PTR
-    lda         #$10
-    sta         >SCREEN_PTR
-    
-    rts
+        sei             ; Disable interrupts. Default INT handler reads VDP_STATUS
+                        ; and would lose any setup done here.
+
+        lda     #$00    ; VRAM offset low
+        sta     VDP_CONTROL_W
+
+        lda     #$50    ; VRAM offset high ($10 OR $40)
+        sta     VDP_CONTROL_W
+
+        lda     #$C0    ; Space from ROM setup
+
+        ldx     #0
+        ldy     #3
+
+L1:     sta     VDP_DATA_W
+        inx
+        bne     L1
+        dey
+        bne     L1
+
+        cli             ; Let interrupts go again
+
+        lda     #0
+        sta     CURSOR_X
+        sta     CURSOR_Y
+        sta     <SCREEN_PTR
+        lda     #$10
+        sta      >SCREEN_PTR
+
+        rts
index b6fd360b4dd345ab8371b490e97ab3c748e2628f..8e86719d2ed1fe30d750e366f2ecaf7ae0ee0265 100644 (file)
@@ -4,10 +4,10 @@
 ;* unsigned char __fastcall__ bordercolor (unsigned char color);
 ;*
 
-    .export     _textcolor, _bgcolor, _bordercolor
-    .import     return0
-    .include    "creativision.inc"
-    
-_bordercolor = return0;
-_textcolor = return0;
-_bgcolor = return0;
+        .export         _textcolor, _bgcolor, _bordercolor
+        .import         return0
+        .include        "creativision.inc"
+
+_bordercolor    =       return0;
+_textcolor      =       return0;
+_bgcolor        =       return0;
index 902caf277223caab74c8bfde9f41a01acb1db6a3..208009ebd18f30e1e2bbe51cc305454e5c75dab5 100644 (file)
@@ -29,13 +29,13 @@ _cputcxy:
 
 ; Plot a character - also used as internal function
 
-_cputc: cmp     #$0d            ; CR?
+_cputc: cmp     #$0D            ; CR?
         bne     L1
         lda     #0
         sta     CURSOR_X
         beq     plot            ; Recalculate pointers
 
-L1:     cmp     #$0a            ; LF?
+L1:     cmp     #$0A            ; LF?
         beq     newline         ; Recalculate pointers
 
 ; Printable char of some sort
@@ -82,19 +82,19 @@ IS_UPPER:
         pha
         lda     SCREEN_PTR
         sei
-        sta             VDP_CONTROL_W
+        sta     VDP_CONTROL_W
         lda     SCREEN_PTR+1
-        ora             #$40
-        sta             VDP_CONTROL_W
+        ora     #$40
+        sta     VDP_CONTROL_W
         pla
         clc
-        adc             #160
-        sta             VDP_DATA_W
+        adc     #160
+        sta     VDP_DATA_W
         cli
 
 BAD_CHAR:
         jmp     plot
-        
+
 ;-----------------------------------------------------------------------------
 ; Initialize the conio subsystem. Code goes into the INIT segment, which may
 ; be reused after startup.
@@ -102,24 +102,24 @@ BAD_CHAR:
 .segment        "INIT"
 
 initconio:
-    lda #$0
-    sta SCREEN_PTR
-    lda #$10
-    sta SCREEN_PTR+1
-
-    ; Copy box characters to slot
-    sei
-    lda #08
-    sta VDP_CONTROL_W
-    lda #$46
-    sta VDP_CONTROL_W
-    ldx #0
-LL:
-    lda boxchars,x
-    sta VDP_DATA_W
-    inx
-    cpx #48
-    bne LL      
-
-    cli
-    jmp plot
+        lda     #$0
+        sta     SCREEN_PTR
+        lda     #$10
+        sta     SCREEN_PTR+1
+
+        ; Copy box characters to slot
+        sei
+        lda     #08
+        sta     VDP_CONTROL_W
+        lda     #$46
+        sta     VDP_CONTROL_W
+        ldx     #0
+
+LL:     lda     boxchars,x
+        sta     VDP_DATA_W
+        inx
+        cpx     #48
+        bne     LL
+
+        cli
+        jmp plot
index 6970e5d24fe7d5098a4425d9ae2ed3f9f19154ac..f65e923b5718bfc26fc3cd1374d9eb56811ea75d 100644 (file)
@@ -11,7 +11,7 @@
 
 .proc   _gotox
 
-        sta     CURSOR_X          ; Set new position
+        sta     CURSOR_X        ; Set new position
         tay
         ldx     CURSOR_Y
         jmp     setcursor       ; Set the cursor to the new position
index 6c0cf932f30945664c8749dec3febfdfd063813d..12ce0abeac95b37cd01cac3e0f2af03038831240 100644 (file)
@@ -12,9 +12,9 @@
 
 .proc   _gotoxy
 
-        sta     CURSOR_Y          ; Set Y
-        jsr     popa              ; Get X
-        sta     CURSOR_X          ; Set X
+        sta     CURSOR_Y        ; Set Y
+        jsr     popa            ; Get X
+        sta     CURSOR_X        ; Set X
         tay
         ldx     CURSOR_Y
         jmp     setcursor       ; Set the cursor position
index f1c9b09f72bc455f45b0d3cfbfad24d88b049ffc..eb0bc6594082a520aa19b7644996dff3c2347a71 100644 (file)
@@ -1,6 +1,6 @@
 ;*
 ;* Creativision Joystick Function
-;* 
+;*
 ;* unsigned char __fastcall__ joystate(unsigned char joy);
 ;*
 ;* JOY_1 -> Return Left Joystick direction
 
         .export         _joystate
         .include        "creativision.inc"
-        
+
 _joystate:
         cmp             #1      ; Left Direction
         bne             l1
-        
+
         lda             $11
         beq             l5
-        and             #$f
+        and             #$0F
         lsr             a
         tax
         inx
         txa
         rts
-        
+
 l1:     cmp             #2      ; Right Direction
         bne             l2
-        
+
         lda             $13
         beq             l5
-        and             #$f
+        and             #$0F
         lsr             a
         tax
         inx
         txa
         rts
-        
+
 l2:     cmp             #3      ; Left Buttons
         bne             l3
-        
+
         lda             $16
         beq             l5
-        and             #$f
+        and             #$0F
         rts
-        
+
 l3:     cmp             #4
         bne             l4
-        
+
         lda             $17
         beq             l5
-        and             #$f
+        and             #$0F
         rts
-        
+
 l4:     lda             #0
 l5:     rts
index d947c1aa4837069c87bcf5e2022c7c7621b2abf6..b642da80a734b7a204c1759b51ef1000115c1cf5 100644 (file)
@@ -5,5 +5,5 @@
         .export         joy_libref, tgi_libref
         .import         _exit
 
-joy_libref      := _exit
-tgi_libref      := _exit
+joy_libref      :=      _exit
+tgi_libref      :=      _exit
index 7ed8d46f4af4d8f64405a0482c0ec36427781a7d..cda76d8d09d3d8b012f3283a29516ec68c56b6cd 100644 (file)
@@ -20,5 +20,3 @@
         rts
 
 .endproc
-
-
index 12b474339499867f0b19abf9b206d6329301e6f0..a32e87f023771c6ca018a2f2797f1c6da34e1661 100644 (file)
@@ -3,40 +3,37 @@
 ; void __fastcall__ bios_playsound( void *b, unsigned char c);
 ; void psg_silence( void );
 
-    .export     _psg_outb, _psg_silence, _psg_delay
-    .export     _bios_playsound
-    .import     popa
-    .include    "creativision.inc"
-    
+        .export          _psg_outb, _psg_silence, _psg_delay
+        .export          _bios_playsound
+        .import          popa
+        .include        "creativision.inc"
+
 _psg_outb:
 
-    ;* Let BIOS output the value
-    jmp $FE77
-    
+        ;* Let BIOS output the value
+        jmp $FE77
+
 _psg_silence:
 
-    jmp $FE54
-    
-    
+        jmp $FE54
+
+
 _psg_delay:
 
-    tay
-l1:     
-    lda #200
-l2:
-    sbc #1
-    bne l2
-    
-    lda #200
-l3:
-    sbc #1
-    bne l3
-    
-    dey
-    bne l1
-    
-    rts
-    
+        tay
+l1:     lda #200
+l2:     sbc #1
+        bne l2
+
+        lda #200
+l3:     sbc #1
+        bne l3
+
+        dey
+        bne l1
+
+        rts
+
 
 ;* Creativision Sound Player
 ;*
@@ -46,23 +43,21 @@ l3:
 
 _bios_playsound:
 
-    pha                 ; Save Length Byte
-    
-    sei
-        
-    lda         #$D5    ; BIOS volume table low
-    sta         $4
-    lda         #$FC    ; BIOS volume table high
-    sta         $5
-    
-    jsr         popa    ; Get Sound table pointer low
-    sta         $0
-    jsr         popa    ; Get Sound table pointer high
-    sta         $1
-    
-    pla
-    tay                 ; Put length in Y
-    dey
-    php
-    jmp         $fbed   ; Let BIOS do it's thing
-        
+        pha                     ; Save Length Byte
+        sei
+
+        lda         #$D5        ; BIOS volume table low
+        sta         $4
+        lda         #$FC        ; BIOS volume table high
+        sta         $5
+
+        jsr         popa        ; Get Sound table pointer low
+        sta         $0
+        jsr         popa        ; Get Sound table pointer high
+        sta         $1
+
+        pla
+        tay                     ; Put length in Y
+        dey
+        php
+        jmp         $FBED       ; Let BIOS do it's thing
index df1a81b673c06e9ba98551e4bd370e4b0a24bd9b..725cb2a62591563c1f64709a751822cdad5c7b63 100644 (file)
@@ -34,6 +34,3 @@ utsdata:
 
         ; machine
         .asciiz         "CREATIVISION"
-
-                            
-
index f9df2d1a1e1b77f79389dfc9080d96e9db5c3cb6..a2e6fdfc5cb1f296a6a75bd53332bbf95f9c64b1 100644 (file)
@@ -5,7 +5,6 @@
 ;
 
         .export         _wherex
-
         .include        "creativision.inc"
 
 .proc   _wherex
@@ -15,5 +14,3 @@
         rts
 
 .endproc
-
-
index 6d7b056f58477aded56a118c7f55d3cfc9605ddf..fa50177c4103e408aaad6bca321dbd61711ce542 100644 (file)
@@ -5,7 +5,6 @@
 ;
 
         .export         _wherey
-
         .include        "creativision.inc"
 
 .proc   _wherey
@@ -15,5 +14,3 @@
         rts
 
 .endproc
-
-
index 1da0ff36d717ff3ff1f376b3c4f62c8a1879d715..a83cab5b6b89967c9d2ff2cfe4b4da57c8d49701 100644 (file)
@@ -259,6 +259,10 @@ static void SetSys (const char* Sys)
             CBMSystem ("__PET__");
             break;
 
+        case TGT_BBC:
+            NewSymbol ("__BBC__", 1);
+            break;
+
         case TGT_APPLE2:
             NewSymbol ("__APPLE2__", 1);
             break;
@@ -278,14 +282,6 @@ static void SetSys (const char* Sys)
             NewSymbol ("__GEOS_CBM__", 1);
             break;
 
-        case TGT_ATMOS:
-            NewSymbol ("__ATMOS__", 1);
-            break;
-
-        case TGT_BBC:
-            NewSymbol ("__BBC__", 1);
-            break;
-
         case TGT_CREATIVISION:
             NewSymbol ("__CREATIVISION__", 1);
             break;
@@ -299,14 +295,22 @@ static void SetSys (const char* Sys)
             NewSymbol ("__LUNIX__", 1);
             break;
 
-        case TGT_LYNX:
-            NewSymbol ("__LYNX__", 1);
+        case TGT_ATMOS:
+            NewSymbol ("__ATMOS__", 1);
             break;
 
         case TGT_NES:
             NewSymbol ("__NES__", 1);
             break;
 
+        case TGT_SUPERVISION:
+            NewSymbol ("__SUPERVISION__", 1);
+            break;
+
+        case TGT_LYNX:
+            NewSymbol ("__LYNX__", 1);
+            break;
+
         case TGT_SIM6502:
             NewSymbol ("__SIM6502__", 1);
             break;
@@ -323,10 +327,6 @@ static void SetSys (const char* Sys)
             NewSymbol ("__PCE__", 1);
             break;
 
-        case TGT_SUPERVISION:
-            NewSymbol ("__SUPERVISION__", 1);
-            break;
-
         default:
             AbEnd ("Invalid target name: `%s'", Sys);
 
index c273d816081a0fed8f8053c004b207b33530842e..780c52b57542faad65616284501a71c962a4d5d4 100644 (file)
@@ -211,6 +211,10 @@ static void SetSys (const char* Sys)
             cbmsys ("__PET__");
             break;
 
+        case TGT_BBC:
+            DefineNumericMacro ("__BBC__", 1);
+            break;
+
         case TGT_APPLE2:
             DefineNumericMacro ("__APPLE2__", 1);
             break;
@@ -230,14 +234,6 @@ static void SetSys (const char* Sys)
             DefineNumericMacro ("__GEOS_CBM__", 1);
             break;
 
-        case TGT_ATMOS:
-            DefineNumericMacro ("__ATMOS__", 1);
-            break;
-
-        case TGT_BBC:
-            DefineNumericMacro ("__BBC__", 1);
-            break;
-
         case TGT_CREATIVISION:
             DefineNumericMacro ("__CREATIVISION__", 1);
             break;
@@ -251,14 +247,22 @@ static void SetSys (const char* Sys)
             DefineNumericMacro ("__LUNIX__", 1);
             break;
 
-        case TGT_LYNX:
-            DefineNumericMacro ("__LYNX__", 1);
+        case TGT_ATMOS:
+            DefineNumericMacro ("__ATMOS__", 1);
             break;
 
         case TGT_NES:
             DefineNumericMacro ("__NES__", 1);
             break;
 
+        case TGT_SUPERVISION:
+            DefineNumericMacro ("__SUPERVISION__", 1);
+            break;
+
+        case TGT_LYNX:
+            DefineNumericMacro ("__LYNX__", 1);
+            break;
+
         case TGT_SIM6502:
             DefineNumericMacro ("__SIM6502__", 1);
             break;
@@ -275,10 +279,6 @@ static void SetSys (const char* Sys)
             DefineNumericMacro ("__PCE__", 1);
             break;
 
-        case TGT_SUPERVISION:
-            DefineNumericMacro ("__SUPERVISION__", 1);
-            break;
-
         default:
             AbEnd ("Unknown target system type %d", Target);
     }
index bf87b17e0ade1ad593bc79949ab1c2c6ce6b30c9..84559b0e7e80db385c9634481987947b09c9fc55 100644 (file)
@@ -142,38 +142,38 @@ struct TargetEntry {
 ** Allows multiple entries for one target id (target name aliases).
 */
 static const TargetEntry TargetMap[] = {
-    {   "apple2",       TGT_APPLE2      },
-    {   "apple2enh",    TGT_APPLE2ENH   },
-    {   "atari",        TGT_ATARI       },
-    {   "atari2600",    TGT_ATARI2600   },
-    {   "atari5200",    TGT_ATARI5200   },
-    {   "atarixl",      TGT_ATARIXL     },
-    {   "atmos",        TGT_ATMOS       },
-    {   "bbc",          TGT_BBC         },
-    {   "c128",         TGT_C128        },
-    {   "c16",          TGT_C16         },
-    {   "c64",          TGT_C64         },
-    {   "c65",          TGT_C65         },
-    {   "cbm510",       TGT_CBM510      },
-    {   "cbm610",       TGT_CBM610      },
-    {   "creativision", TGT_CREATIVISION},
-    {   "gamate",       TGT_GAMATE      },
-    {   "geos",         TGT_GEOS_CBM    },
-    {   "geos-apple",   TGT_GEOS_APPLE  },
-    {   "geos-cbm",     TGT_GEOS_CBM    },
-    {   "lunix",        TGT_LUNIX       },
-    {   "lynx",         TGT_LYNX        },
-    {   "module",       TGT_MODULE      },
-    {   "nes",          TGT_NES         },
-    {   "none",         TGT_NONE        },
-    {   "osic1p",       TGT_OSIC1P      },
-    {   "pce",          TGT_PCENGINE    },
-    {   "pet",          TGT_PET         },
-    {   "plus4",        TGT_PLUS4       },
-    {   "sim6502",      TGT_SIM6502     },
-    {   "sim65c02",     TGT_SIM65C02    },
-    {   "supervision",  TGT_SUPERVISION },
-    {   "vic20",        TGT_VIC20       },
+    {   "apple2",       TGT_APPLE2       },
+    {   "apple2enh",    TGT_APPLE2ENH    },
+    {   "atari",        TGT_ATARI        },
+    {   "atari2600",    TGT_ATARI2600    },
+    {   "atari5200",    TGT_ATARI5200    },
+    {   "atarixl",      TGT_ATARIXL      },
+    {   "atmos",        TGT_ATMOS        },
+    {   "bbc",          TGT_BBC          },
+    {   "c128",         TGT_C128         },
+    {   "c16",          TGT_C16          },
+    {   "c64",          TGT_C64          },
+    {   "c65",          TGT_C65          },
+    {   "cbm510",       TGT_CBM510       },
+    {   "cbm610",       TGT_CBM610       },
+    {   "creativision", TGT_CREATIVISION },
+    {   "gamate",       TGT_GAMATE       },
+    {   "geos",         TGT_GEOS_CBM     },
+    {   "geos-apple",   TGT_GEOS_APPLE   },
+    {   "geos-cbm",     TGT_GEOS_CBM     },
+    {   "lunix",        TGT_LUNIX        },
+    {   "lynx",         TGT_LYNX         },
+    {   "module",       TGT_MODULE       },
+    {   "nes",          TGT_NES          },
+    {   "none",         TGT_NONE         },
+    {   "osic1p",       TGT_OSIC1P       },
+    {   "pce",          TGT_PCENGINE     },
+    {   "pet",          TGT_PET          },
+    {   "plus4",        TGT_PLUS4        },
+    {   "sim6502",      TGT_SIM6502      },
+    {   "sim65c02",     TGT_SIM65C02     },
+    {   "supervision",  TGT_SUPERVISION  },
+    {   "vic20",        TGT_VIC20        },
 };
 #define MAP_ENTRY_COUNT         (sizeof (TargetMap) / sizeof (TargetMap[0]))
 
@@ -195,13 +195,12 @@ static const TargetProperties PropertyTable[TGT_COUNT] = {
     { "cbm610",         CPU_6502,       BINFMT_BINARY,      CTPET   },
     { "osic1p",         CPU_6502,       BINFMT_BINARY,      CTOSI   },
     { "pet",            CPU_6502,       BINFMT_BINARY,      CTPET   },
+    { "bbc",            CPU_6502,       BINFMT_BINARY,      CTNone  },
     { "apple2",         CPU_6502,       BINFMT_BINARY,      CTNone  },
     { "apple2enh",      CPU_65C02,      BINFMT_BINARY,      CTNone  },
-    { "atmos",          CPU_6502,       BINFMT_BINARY,      CTNone  },
-    { "bbc",            CPU_6502,       BINFMT_BINARY,      CTNone  },
+    { "geos-cbm",       CPU_6502,       BINFMT_BINARY,      CTNone  },
     { "creativision",   CPU_6502,       BINFMT_BINARY,      CTNone  },
     { "geos-apple",     CPU_65C02,      BINFMT_BINARY,      CTNone  },
-    { "geos-cbm",       CPU_6502,       BINFMT_BINARY,      CTNone  },
     { "lunix",          CPU_6502,       BINFMT_O65,         CTNone  },
     { "atmos",          CPU_6502,       BINFMT_BINARY,      CTNone  },
     { "nes",            CPU_6502,       BINFMT_BINARY,      CTNone  },
@@ -211,7 +210,6 @@ static const TargetProperties PropertyTable[TGT_COUNT] = {
     { "sim65c02",       CPU_65C02,      BINFMT_BINARY,      CTNone  },
     { "pce",            CPU_HUC6280,    BINFMT_BINARY,      CTNone  },
     { "gamate",         CPU_6502,       BINFMT_BINARY,      CTNone  },
-    { "supervision",    CPU_65SC02,     BINFMT_BINARY,      CTNone  },
     { "c65",            CPU_4510,       BINFMT_BINARY,      CTPET   },
 };
 
index 1e54784b163e3df7e76eefb9ed9e6da963b20055..054c4f2baf5d323f5b4cc550880cebef138c93ed 100644 (file)
@@ -67,21 +67,21 @@ typedef enum {
     TGT_CBM610,
     TGT_OSIC1P,
     TGT_PET,
+    TGT_BBC,
     TGT_APPLE2,
     TGT_APPLE2ENH,
-    TGT_ATMOS,
-    TGT_BBC,
+    TGT_GEOS_CBM,
     TGT_CREATIVISION,
     TGT_GEOS_APPLE,
-    TGT_GEOS_CBM,
     TGT_LUNIX,
-    TGT_LYNX,
+    TGT_ATMOS,
     TGT_NES,
+    TGT_SUPERVISION,
+    TGT_LYNX,
     TGT_SIM6502,
     TGT_SIM65C02,
     TGT_PCENGINE,
     TGT_GAMATE,
-    TGT_SUPERVISION,
     TGT_C65,
     TGT_COUNT                   /* Number of target systems */
 } target_t;