mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 19:36:57 +00:00
The aarch64 folder will hold all cpu code from now on. Signed-off-by: Ronald Caesar <github43132@proton.me>
17 lines
No EOL
457 B
C++
Executable file
17 lines
No EOL
457 B
C++
Executable file
#include "isa.h"
|
|
#include "Base/Assert.h"
|
|
|
|
void cpuTest()
|
|
{
|
|
CPU cpu;
|
|
cpu.pc = 0;
|
|
|
|
// Simple ARMv8 program in memory (MOVZ X0, #5; ADD X0, X0, #3; RET)
|
|
// These are placeholders; real encoding will be parsed later
|
|
cpu.write_byte(0, 0x05); // MOVZ placeholder
|
|
cpu.write_byte(4, 0x03); // ADD placeholder
|
|
cpu.write_byte(8, 0xFF); // RET placeholder
|
|
|
|
LOG_INFO(ARM, "{}", cpu.read_byte(0));
|
|
cpu.print_debug_information();
|
|
} |