1. Radix Point for Fractions
Represent fractional values using a radix point (colon :)
2. Negative Numbers
Represent negative numbers using Sign-Magnitude or Ten's Complement
Sign-Magnitude: Simple prefix with minus sign (e.g., -I V for -15)
Ten's Complement: Uses complement arithmetic (e.g., IX IX VIII V for -15 in 4-digit system)
Ten's Complement: Uses complement arithmetic (e.g., IX IX VIII V for -15 in 4-digit system)
3. Romasm ISA (Instruction Set Architecture)
Map Roman symbols to CPU operations - treat Romasm as assembly language
Instruction Mappings
| Symbol | Operation |
|---|---|
| I | INC (Increment) |
| D | DEC (Decrement) |
| V | JMP (Jump) |
| X | STORE |
| L | LOAD |
| C | CMP (Compare) |
| M | MUL (Multiply) |
| A | ADD |
| S | SUB (Subtract) |
Register Mappings
Roman numerals I-IX map to registers 0-8
Example Instructions:
I II- Increment register 1X V III- Store value 5 to address 3L I- Load from register 0
Examples
Fraction Example
15.51 in Romasm: I V:V I
This represents: 15 + 5/10 + 1/100 = 15.51
Negative Example (Sign-Magnitude)
-15 in Romasm: -I V
Simple prefix notation
ISA Example
Instruction: X V III
STORE value 5 to address 3