This command stands for load, and is one of the most commonly used commands
in any assembly language. It's equivalent on PCs is MOV. The syntax is:
LD I, A
LD A, I
LD R, A
LD A, R
LD (BC), ? In these 6 lines ? means A, B, C, D, E, H, L, 0-255, 0-65535,
LD (DE), ? BC, DE, HL, or SP and d is between -128 and 127.
LD (HL), ?
LD (#), ?
LD (IX+d), ?
LD (IY+d), ?
LD A, ? In these 7 lines ? means A, B, C, D, E, H, L, 0-255, (HL), (BC),
LD B, ? (DE), (SP), (IX+d), (IY+d), or (#) where d is -127 to 128 and # is
LD C, ? a location in the TI's memory.
LD D, ?
LD E, ?
LD H, ?
LD L, ?
LD BC, ? In these 4 lines ? means (HL), (BC), (DE), (SP), (IX+d), (IY+d), BC,
LD DE, ? DE, HL, SP, 0-65535 or (#) where d is -128 to 127 and # is an
LD HL, ? address in the calc's memory.
LD SP, ?
LD r, r' This command loads A, B, C, D, E, F, H, or L with A', B', C', D', E',
F', H', or L'.
This command moves a byte or a word from memory to a register, from a register
to memory, or from one register to another. It is one of the most frequently
used commands. If you know whether the syntax LD r', r is valid,
mail me.
Back to top
NOP
Questions, comments, flames? Send them in!
If you need help (more simple or more technical) tell me and I'll send it to
you by e-mail. Also, is there anything in specific you want to see examples
of? Let me know!