4 ms·
STM8 is a fairly new design although with some similarities to the 6502 and 6800. It does have multiply and divide instructions. It also has a plethora of addre
by davidgould 6y ago
STM8 is a fairly new design although with some similarities to the 6502 and 6800. It does have multiply and divide instructions. It also has a plethora of addressing modes:
ld a, #42 ; immediate. C constants
ld a, var ; direct. C globals and statics
ld a, (sp, 4) ; sp relative. C locals and arguments
ld a, (x) ; indirect. C *ptr (ptr in register)
ld a, (x, 42) ; indexed indirect. C ptr->foo (ptr in register)
ld a, [ptr] ; memory indirect. C *ptr (ptr in memory)
ld a, ([ptr],x) ; indexed memory indirect. C ptr->foo (ptr in memory)
There are more, but mainly variations in width and PC relative jumps.
- segfaultbuserr 6y agoThanks for the correction.