Variable Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 _ah
 _al
 _ax
 _bh
 _bl
 _bp
 _bx
 _ch
 _cl
 _cx
 _dh
 _di
 _dl
 _dx
 _r0
 _r1
 _si
C
 clock_hh
 clock_mm
 clock_ss
 clock_tt
 color_ctrl
 color_data
 color_reg
 colorport
F
 FAT32_ARCHIVE
 FAT32_BOOT_JMP
 FAT32_BOOT_NOP
 FAT32_BYTES_PER_SECTOR
 FAT32_DIRECTORY
 FAT32_FAT_COUNT
 FAT32_HIDDEN
 FAT32_INT13_PARTITION
 FAT32_LONG_NAME
 FAT32_MAX_PARTITION_COUNT
 FAT32_MAX_PATH
 FAT32_MBR_SIGNATURE
 FAT32_MEDIA_TYPE
 FAT32_PARTITION
 FAT32_READ_ONLY
 FAT32_SYSTEM
 FAT32_VOLUME_ID
 font_8x8
 FONT_8x8_ASCII_FIRST
 FONT_8x8_ASCII_LAST
 FONT_8x8_COUNT
 FONT_DIGIT_INDEX
 FONT_LOWER_CASE_INDEX
 FONT_UPPER_CASE_INDEX
H
 HSYNC
I
 INT_ALL
 INT_IRQ1
 INT_IRQ2
 INT_NMI
 INT_TIMER
 IO_CD_MASK
 IO_COUNTRY_MASK
 IO_JOYPAD_DOWN
 IO_JOYPAD_I
 IO_JOYPAD_II
 IO_JOYPAD_III
 IO_JOYPAD_IV
 IO_JOYPAD_LEFT
 IO_JOYPAD_MASK
 IO_JOYPAD_RIGHT
 IO_JOYPAD_RUN
 IO_JOYPAD_SEL
 IO_JOYPAD_UP
 IO_JOYPAD_V
 IO_JOYPAD_VI
 irq_cnt
 irq_disable
 irq_m
 irq_status
 IRQ1
 IRQ2
 irqport
J
 joyold
 joypad
 joypad_6
 JOYPAD_DOWN
 JOYPAD_I
 JOYPAD_II
 JOYPAD_III
 JOYPAD_IV
 JOYPAD_LEFT
 JOYPAD_RIGHT
 JOYPAD_RUN
 JOYPAD_SEL
 JOYPAD_UP
 JOYPAD_VI
 joyport
 joytrg
N
 NMI
P
 psg_ctrl
 PSG_CTRL_CHAN_ON
 PSG_CTRL_DDA_ON
 PSG_CTRL_FULL_VOLUME
 PSG_CTRL_VOL_MASK
 PSG_CTRL_WRITE_RESET
 psg_freq_hi
 psg_freq_lo
 psg_lfoctrl
 psg_lfofreq
 psg_mainvol
 psg_noise
 psg_pan
 psg_wavebuf
 psgport
_ah = _ax+1
_ax MSB
_al = _ax
_ax LSB
_ax = $20f8
_bh = _bx+1
_bx MSB
_bl = _bx
_bx LSB
_bp = $20ec
Base pointer.
_bx = $20fa
_ch = _cx+1
_cx MSB
_cl = _cx
_cx LSB
_cx = $20fc
_dh = _dx+1
_dx MSB
_di = $20f0
Destination address.
_dl = _dx
_dx LSB
_dx = $20fe
_r0 = $20e8
_r1 = $20ea
_si = $20ee
Source address.
clock_hh .ds 1
System clock, hours since startup (0-255)
clock_mm .ds 1
System clock, minutes since startup (0-59)
clock_ss .ds 1
system clock, seconds since startup (0-59)
clock_tt .ds 1
System clock, ticks (1/60th sec) since startup (0-59)
color_ctrl = colorport
VCE Control register.
color_data = colorport+4
VCE Color table data register.
color_reg = colorport+2
VCE control table index register.
colorport = $0400
VCE port.
FAT32_ARCHIVE = %0010_0000
FAT32_BOOT_JMP = $EB
JMP opcode (x86).
FAT32_BOOT_NOP = $90
NOP opcode (x86).
FAT32_BYTES_PER_SECTOR = $200
Number of bytes per sector.
FAT32_DIRECTORY = %0001_0000
FAT32_FAT_COUNT = $02
Maximum number of File Attribute Tables.
FAT32_HIDDEN = %0000_0010
FAT32_INT13_PARTITION = $0c
FAT32_LONG_NAME = $0f
FAT32_MAX_PARTITION_COUNT = 4
Maximum number of msdos partitions.
FAT32_MAX_PATH = 260
Maximum character length of a path.
FAT32_MBR_SIGNATURE = $AA55
Master Boot Record signature.
FAT32_MEDIA_TYPE = $f8
FAT32_PARTITION = $0b
FAT32_READ_ONLY = %0000_0001
FAT32_SYSTEM = %0000_0100
FAT32_VOLUME_ID = %0000_1000
font_8x8:
8x8 1bpp font data.
ASCII code of the first font character.
ASCII code of the last font character.
FONT_8x8_COUNT=$80
Number of characters embedded in the font.
FONT_DIGIT_INDEX=$30
Tile index of the first digit character (‘0’).
FONT_LOWER_CASE_INDEX=$61
Tile index of the first lowercase character (‘a’).
FONT_UPPER_CASE_INDEX=$41
Tile index of the first uppercase character (‘A’).
HSYNC = 5
INT_ALL = INT_IRQ2 | INT_IRQ1 | INT_TIMER | INT_NMI
Bitfield grouping all interrupts.
IRQ1 is triggered by the VDC.
This interrupt is available on the HuCard and expension connectors.
The NMI interrupt does not seem to be used.
This TIMER interrupt is generated by the HuC6280’s internal timer.
IO_CD_MASK = %10000000
CD-ROM base unit sense bit.
IO_COUNTRY_MASK = %01000000
Country detection.
IO_JOYPAD_DOWN = %00000100
Bit in the joyport for the down direction on the D-PAD (SEL=1).
IO_JOYPAD_I = %00000001
Bit in the joyport for button I (SEL=0).
IO_JOYPAD_II = %00000010
Bit in the joyport for button II (SEL=0).
IO_JOYPAD_III = %00000001
Bit in the joyport for button III on a 6-button joypad.
IO_JOYPAD_IV = %00000010
Bit in the joyport for button IV on a 6-button joypad.
IO_JOYPAD_LEFT = %00001000
Bit in the joyport for the left direction on the D-PAD (SEL=1).
IO_JOYPAD_MASK = %00001111
Joypad port pin.
IO_JOYPAD_RIGHT = %00000010
Bit in the joyport for the right direction on the D-PAD (SEL=1).
IO_JOYPAD_RUN = %00001000
Bit in the joyport for the RUN button (SEL=0).
IO_JOYPAD_SEL = %00000100
Bit in the joyport for the Select button (SEL=0).
IO_JOYPAD_UP = %00000001
Bit in the joyport for the up direction on the D-PAD (SEL=1).
IO_JOYPAD_V = %00000100
Bit in the joyport for button V on a 6-button joypad.
IO_JOYPAD_VI = %00001000
Bit in the joyport for button VI on a 6-button joypad.
irq_cnt = $20f2
Interrupt counter.
irq_disable = irqport+2
Interrupts disable port.
irq_m = $20f5
Interrupt control mask.
irq_status = irqport+3
Interrupts status.
IRQ1 = 1
IRQ2 = 0
Index of the user defined IRQ2 vector.
irqport = $1400
IRQ ports
joyold .ds 5
Previous 5 joypads values.
joypad .ds 5
This array holds the values for 5 2-buttons joypads.
joypad_6 .ds 5
This array contains the values for buttons III, IV, V and VI of 5 6-buttons joypads.
Bit in the joypad for the down direction..
JOYPAD_I = IO_JOYPAD_I
Bit in the joypad for button I.
JOYPAD_II = IO_JOYPAD_II
Bit in the joypad for button II.
JOYPAD_III = IO_JOYPAD_III
Bit in the joypad for button III.
JOYPAD_IV = IO_JOYPAD_IV
Bit in the joypad for button IV.
Bit in the joypad for the left direction.
Bit in the joypad for the right direction.
JOYPAD_RUN = IO_JOYPAD_RUN
Bit in the joypad for the RUN button.
JOYPAD_SEL = IO_JOYPAD_SEL
Bit in the joypad for the Select button.
Bit in the joypad for the up direction.
Bit in the joypad for button VI.
joyport = $1000
I/O port.
joytrg .ds 5
Delta joypad values for 5 2-buttons joypads.
NMI = 3
psg_ctrl = psgport+4
Control register.
PSG_CTRL_CHAN_ON = %10000000
PSG control register bit masks 1 - Channel on 0 - Channel off
PSG_CTRL_DDA_ON = %11000000
DDA output.
PSG_CTRL_FULL_VOLUME = %00111111
Channel maximum volume (bit 5 is unused)
PSG_CTRL_VOL_MASK = %00011111
Channel volume.
PSG_CTRL_WRITE_RESET = %01000000
Reset waveform write index to 0
psg_freq_hi = psgport+3
Rough frequency adjust.
psg_freq_lo = psgport+2
Fine frequency adjust.
psg_lfoctrl = psgport+9
LFO trigger and control.
psg_lfofreq = psgport+8
LFO frequency.
psg_mainvol = psgport+1
Global sound volume.
psg_noise = psgport+7
Noise control.
psg_pan = psgport+5
Channel balance.
psg_wavebuf = psgport+6
Channel sound data.
psgport = $0800
PSG port.
Close