defines-c64vic20.inc

     1:  
     2:  COMPUTER_UNKNOWN=0
     3:  
     4:  VIC20_GENERAL=COMPUTER_UNKNOWN + $10
     5:  VIC20_02=VIC20_GENERAL + 2
     6:  VIC20_06=VIC20_GENERAL + 6
     7:  VIC20_07=VIC20_GENERAL + 7
     8:  
     9:  C64_GENERAL=VIC20_GENERAL + $20
    10:  C64_01=C64_GENERAL + 1
    11:  C64_02=C64_GENERAL + 2
    12:  C64_03=C64_GENERAL + 3
    13:  C64_SX64=C64_GENERAL + 4
    14:  C64_4064=C64_GENERAL + 5
    15:  C64_GS=C64_GENERAL + 6
    16:  
    17:  .ifdef vic20
    18:  CompileComputer=VIC20_GENERAL + vic20
    19:  .elseif .defined(c64)
    20:          .if c64 = 4064
    21:  CompileComputer=C64_4064
    22:          .else
    23:  CompileComputer=C64_GENERAL + c64
    24:          .endif
    25:  .endif
    26:  
    27:  .ifdef sx64
    28:  CompileComputer=C64_SX64
    29:  c64 = sx64
    30:  .endif
    31:  
    32:  .ifdef c64gs
    33:  CompileComputer=C64_GS
    34:  c64 = c64gs
    35:  .endif
    36:  
    37:  .ifndef CompileComputer
    38:  CompileComputer=COMPUTER_UNKNOWN
    39:  .endif
    40:  
    41:  .macro FillCount count,filler
    42:          .repeat count
    43:                  .ifblank filler
    44:                          .byte DRIVEFILLER
    45:                  .else
    46:                          .byte filler
    47:                  .endif
    48:          .endrep
    49:  .endmacro
    50:  
    51:  .macro FillUntil address,filler
    52:          FillCount address-*,filler
    53:  .endmacro
    54:  
    55:  .macro FillNOP count
    56:          FillCount count,$EA
    57:  .endmacro
    58:  
    59:  IEEE_LISTEN    = $20    ; on ATN, with primary address
    60:  IEEE_TALK      = $40    ; on ATN, with primary address
    61:  IEEE_OPEN      = $60    ; on ATN, with secondary address
    62:  IEEE_CLOSE     = $E0    ; on ATN, with primary address
    63:  IEEE_SECONDARY = $F0    ; on ATN, with secondary address
    64:  
    65:  IEEE_LOAD      = IEEE_OPEN + 0
    66:  IEEE_SAVE      = IEEE_OPEN + 1
    67:  
    68:  IEEE_UNLISTEN = IEEE_LISTEN + $1F
    69:  IEEE_UNTALK   = IEEE_TALK   + $1F
    70:  
    71:  STATUS_IEC_DEVICE_NOT_PRESENT        = $80
    72:  STATUS_IEC_EOI                       = $40
    73:  STATUS_IEC_TIMEOUT_READ              = $02
    74:  STATUS_IEC_TIMEOUT_WRITE             = $01
    75:  
    76:  STATUS_VERIFY                        = $10
    77:  
    78:  STATUS_TAPE_EOT                      = $80
    79:  STATUS_TAPE_EOF                      = $40 ; not on LOAD and VERIFY
    80:  STATUS_TAPE_CHKSUM_ERR               = $20
    81:  STATUS_TAPE_UNRECOVERABLE_READ_ERROR = $10
    82:  STATUS_TAPE_LONG_BLOCK               = $08
    83:  STATUS_TAPE_SHORT_BLOCK              = $04
    84:  
Valid XHTML 1.0 Strict
defines-c64vic20.inc.html; generated on Fri Sep 18 21:44:54 2015 by ca65html
uz@cc65.org