4 ms·
I've always like 6502 (and ARM) syntax. LDA #5 means load A with the literal number 5.
by tenebrisalietum 4y ago
I've always like 6502 (and ARM) syntax. LDA #5 means load A with the literal number 5.
- pclmulqdq 4y agoIntel syntax it is, then. MOV EAX, 5 Vs MOV $5, %EAX
- timbit42 4y agoIt always seemed weird to be use use MOV[E] as a command when the value isn't being removed from the source location. It should be C[O]PY.
- tenebrisalietum 4y agoNo absolute consistency in ISAs, even among the same one: E.g. - 6502 uses "load"/"store" (LDA/STA, LDX/STX, LDY/STY), but also "transfer" (TXA, TAX, TYA, TAY, TSX, TXS). - Z80 has "load" (LD, LDD, LDIR) but NO "store" (stores are LD src=reg,dest=ram I think) - Some 4-bit Sharp CPUs use "t" meaning transfer as a JMP. - Intel 4004 has mnemonics with Fetch, Read, Write, Load - MIPS has both "load"/"store" (lb/sb,lbu,lh/sh,lhu,lw/sw,lui,la,li) and a couple "move" mnemonics (mfhi/mthi, mflo/mtlo). - 68000 has MOVE (MOVE, MOVEA, MOVEM, MOVEQ), but then you do have that pesky LEA (Load Effective Address) instruction. - Signetics 2650 is consistent, you have LODA/STRA, LODI, LODR/STRR, LODZ/STRZ for load/stores of registers to/from RAM and LDPL/STPL, LPSL/SPSL, LPSU/SPSU for load/stores of the PSW to/fom RAM.