This is an assembler for the CHIP-8 and SCHIP, utilizing libc8.
c8as [-vV] [-o outputfile] src
-o
sets an output file (default is a.c8
).-v
prints diagnostic messages and the resulting hex-encoded bytecode to standard output.-V
prints the version number.JP mylabel
mysprite:
DW 0x1234
mylabel:
ADD V0, 1
ADD V1, 0xA
LD I, mysprite
DRW V0, V1, 1
0x
, x
, or $
prefixes.0b
prefix..DB
symbol..DW
symbol.