User guide

FT 3120 / FT 3150 Smart Transceiver Data Book 13
Memory Allocation
Table 2.5 ALU Instructions
Memory Allocation
FT 3120 Smart Transceiver
See Figure 2.6 for a memory map of the FT 3120 Smart Transceiver.
4,096 bytes of in-circuit programmable EEPROM that store:
— Network configuration and addressing information.
— Unique 48-bit Neuron ID (written at the factory).
— User-written application code and read-mostly data.
2,048 bytes of static RAM that store the following:
— Stack segment, application, and system data.
— Network buffers and application buffers.
12,288 bytes of ROM that store the following:
— The Neuron firmware, including the system firmware executed by the MAC and network processors, and
the executive supporting the application program.
FT 3150 Smart Transceiver
See Figure 2.5 for a memory map of the FT 3150 Smart Transceiver.
512 bytes of in-circuit programmable EEPROM that store the following:
— Network configuration and addressing information.
POPD [PTR] 6 1 Pop to 16-bit pointer [0 to 3], low byte first
PUSH/POP [PTR][TOS] 6 1 EA = (16-bit pointer) + TOS
PUSH/POP [PTR][D] 7 2 EA = (16-bit pointer) + displacement [0 to 255]
PUSH/POP absolute 7 3 Absolute memory address
IN/OUT 7 + 4n 1 Fast I/O instruction, transfer n bytes
Mnemonic Cycles Size (bytes) Operation
INC/DEC/NOT 2 1 Increment/decrement/negate TOS
ROLC/RORC 2 1 Rotate left/right TOS through carry
SHL/SHR 2 1 Unsigned left/right shift TOS, clear carry
SHLA/SHRA 2 1 Signed left/right shift TOS into carry
ADD/AND/OR/XOR/ADC 4 1 Operate with NEXT on TOS, drop NEXT
ADD/AND/OR/XOR #literal 3 2 Operate with literal on TOS
(ADD/AND/OR/XOR)_R 7 1 Operate with NEXT on TOS, drop NEXT and
return
ALLOC #literal 3 1 Add [1 to 8] to data stack pointer
DEALLOC_R #literal 6 1 Subtract [1 to 8] from data stack pointer and return
SUB NEXT,TOS 4 1 TOS = NEXT - TOS, drop NEXT
SBC NEXT, TOS 4 1 TOS = NEXT - TOS - carry, drop NEXT
SUB TOS,NEXT 4 1 TOS = TOS - NEXT, drop NEXT
XCH 4 1 Exchange TOS and NEXT
INC [PTR] 6 1 Increment 16-bit pointer [0 to 3]