2025-04-15 22:20:46 +03:00
|
|
|
# RET instruction tests
|
|
|
|
# Format: RawBytes;Instructions
|
|
|
|
RawBytes;Instructions
|
|
|
|
|
|
|
|
# RET (opcode C3) - Near return to calling procedure
|
|
|
|
C3;[{ "Type": "Ret", "Operands": [] }]
|
|
|
|
|
|
|
|
# RET imm16 (opcode C2) - Near return to calling procedure and pop imm16 bytes from stack
|
2025-04-17 20:06:18 +03:00
|
|
|
C20000;[{ "Type": "Ret", "Operands": ["0x00"] }]
|
|
|
|
C20400;[{ "Type": "Ret", "Operands": ["0x04"] }]
|
|
|
|
C20800;[{ "Type": "Ret", "Operands": ["0x08"] }]
|
|
|
|
C21000;[{ "Type": "Ret", "Operands": ["0x10"] }]
|
2025-04-15 22:20:46 +03:00
|
|
|
C2FFFF;[{ "Type": "Ret", "Operands": ["0xFFFF"] }]
|
|
|
|
|
|
|
|
# RETF (opcode CB) - Far return to calling procedure
|
|
|
|
CB;[{ "Type": "Retf", "Operands": [] }]
|
|
|
|
|
|
|
|
# RETF imm16 (opcode CA) - Far return to calling procedure and pop imm16 bytes from stack
|
2025-04-17 22:54:19 +03:00
|
|
|
CA0000;[{ "Type": "Retf", "Operands": ["0x00"] }]
|
|
|
|
CA0400;[{ "Type": "Retf", "Operands": ["0x04"] }]
|
|
|
|
CA0800;[{ "Type": "Retf", "Operands": ["0x08"] }]
|
|
|
|
CA1000;[{ "Type": "Retf", "Operands": ["0x10"] }]
|
2025-04-15 22:20:46 +03:00
|
|
|
CAFFFF;[{ "Type": "Retf", "Operands": ["0xFFFF"] }]
|