|
defb <value> [,<value>...]
Pseudo instructions: defb, db, .db and .byte 8080 pseudo instructions: DBdb <value> [,<value>...]
.Pseudo instructions: defb, db, .db and .byte 8080 pseudo instructions: DBdb <value> [,<value>...]
.byte <value> [,<value>...]
Store a series of bytes into the code.
The 'defb' Pseudo instructions 8080 Assembler: 8080 pseudo instructionspseudo instruction evaluates the argument Expressions 8080 Assembler: Expressionsexpressions and puts them one byte after the other into the code segment.
Note: Due to the various methods for using 'defb' and 'defm' found in the wild zasm handles these two instructions in exactly the same way. This paragraph describes the 'byte oriented' usage cases. For the 'string oriented' usage cases see 'defm'.
defb $123, _foo+10, (_N*2)+1, 'a', 'b'+1
Numeric literals can be written in various formats and the value can be a numeric expression.
The values are checked to be either a valid int8 or uint8 value, which means it must be in range -128 to +255. Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endifIf some bytes unexpectedly are reported to be out of range, then your source may assume no operator hierarchy. Then use Differences from v3 to v4: Command line options Command Line Options Command Line Options: Command line optionscommand line option --Command Line Options: --flatops, .flatops Commands for command line options: --flatops, .flatopsflatops.
Character literals like 'a' are translated into the target system's character Pseudo instructions: defl, set and '=' Labels: SETset Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endifif a #charset conversion has been defined.
There are some useful functions known by the Expressions 8080 Assembler: Expressionsexpression evaluator:
| |