name stringlengths 1 4.98k | code stringlengths 61 2.07M | asm stringlengths 57 12.9M | file stringlengths 18 192 |
|---|---|---|---|
Attributes::img::sizes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | bool Attributes::img::sizes(std::string value)
{
Logs logs;
this->sizes_t = value;
if (Attributes::img::sizes() == value) {
logs.done("img attribute sizes set");
return (true);
}
logs.fail("img attribute sizes not set");
return (false);
} | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rsi, -0xa8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x25d0
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
addq $0x160, %rdi # imm = 0x160
callq 0x2030
jmp 0xadfa
movq -0xb0(%... | Neotoxic-off[P]Zest/src/tag/img.cpp |
Attributes::img::srcset(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | bool Attributes::img::srcset(std::string value)
{
Logs logs;
this->srcset_t = value;
if (Attributes::img::srcset() == value) {
logs.done("img attribute srcset set");
return (true);
}
logs.fail("img attribute srcset not set");
return (false);
} | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rsi, -0xa8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x25d0
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
addq $0x180, %rdi # imm = 0x180
callq 0x2030
jmp 0xafea
movq -0xb0(%... | Neotoxic-off[P]Zest/src/tag/img.cpp |
Attributes::img::usermap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | bool Attributes::img::usermap(std::string value)
{
Logs logs;
this->usermap_t = value;
if (Attributes::img::usermap() == value) {
logs.done("img attribute usermap set");
return (true);
}
logs.fail("img attribute usermap not set");
return (false);
} | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rsi, -0xa8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x25d0
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
addq $0x1a0, %rdi # imm = 0x1A0
callq 0x2030
jmp 0xb1da
movq -0xb0(%... | Neotoxic-off[P]Zest/src/tag/img.cpp |
Attributes::img::style(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | bool Attributes::img::style(std::string value)
{
Logs logs;
this->style_t = value;
if (Attributes::img::style() == value) {
logs.done("img attribute style set");
return (true);
}
logs.fail("img attribute style not set");
return (false);
} | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rsi, -0xa8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x25d0
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
addq $0x1c0, %rdi # imm = 0x1C0
callq 0x2030
jmp 0xb3ca
movq -0xb0(%... | Neotoxic-off[P]Zest/src/tag/img.cpp |
Attributes::img::~img() | Attributes::img::~img()
{
Attributes::img::id(EMPTY);
Attributes::img::src(EMPTY);
Attributes::img::crossorigin(EMPTY);
Attributes::img::height(EMPTY);
Attributes::img::width(EMPTY);
Attributes::img::jsmap(EMPTY);
Attributes::img::ismap(EMPTY);
Attributes::img::loading(EMPTY);
Attrib... | pushq %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp # imm = 0x2B0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x248(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x22f0
movq -0x240(%rbp), %rdx
leaq 0x2b6c(%rip), %rsi # 0xe114
leaq -0x28(%rbp), %rdi
callq 0x3780
jmp 0xb5b3
movq -0x248(%... | Neotoxic-off[P]Zest/src/tag/img.cpp |
Attributes::img::get_attributes[abi:cxx11]() | std::string Attributes::img::get_attributes()
{
std::string data = "";
std::string id = Attributes::img::id();
std::string alt = Attributes::img::alt();
std::string src = Attributes::img::src();
std::string crossorigin = Attributes::img::crossorigin();
std::string height = Attributes::img::heigh... | pushq %rbp
movq %rsp, %rbp
subq $0x930, %rsp # imm = 0x930
movq %rdi, -0x830(%rbp)
movq %rdi, %rax
movq %rax, -0x840(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x838(%rbp)
movb $0x0, -0x11(%rbp)
leaq -0x12(%rbp), %rdi
movq %rdi, -0x828(%rbp)
callq 0x22f0
movq -0x830... | Neotoxic-off[P]Zest/src/tag/img.cpp |
Tools::malloc(int) | char *Tools::malloc(int size)
{
char *array = malloc(sizeof(char) * (size + 1));
for (int i = 0; i <= size; i++)
array[i] = '\0';
return (array);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %eax
addl $0x1, %eax
cltq
shlq $0x0, %rax
movl %eax, %esi
callq 0xd750
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jg 0xd7a0
movq -0x18(%rbp), %ra... | Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::set(char*) | char *Tools::set(char *add)
{
int add_length = length(add);
char *array = malloc(sizeof(char) * (add_length + 1));
for (int i = 0; i < add_length; i++) {
array[i] = add[i];
}
return (array);
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movq -0x10(%rbp), %rsi
callq 0xd830
movq -0x30(%rbp), %rdi
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
cltq
shlq $0x0, %rax
movl %eax, %esi
callq 0xd750
movq %rax, -0x2... | Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::equal(char*, char*) | bool Tools::equal(char *to_compare, char *compared_to)
{
int compare_size = length(to_compare);
int compared_size = length(compared_to);
if (compare_size == compared_size) {
for (int i = 0; i < compare_size; i++) {
if (to_compare[i] != compared_to[i])
return (false);
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x38(%rbp)
movq -0x18(%rbp), %rsi
callq 0xd830
movq -0x38(%rbp), %rdi
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rsi
callq 0xd830
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %e... | Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::count(char*, char) | int Tools::count(char *str, char c)
{
int count = 0;
for (int i = 0; str[i] != '\0'; i++)
if (str[i] == c)
count++;
return (count);
} | pushq %rbp
movq %rsp, %rbp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0xd96a
movq -0x10(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movsbl (%rax,%rcx),... | Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::mmalloc(int) | char **Tools::mmalloc(int size)
{
char **array = (char **) malloc(sizeof(char *) * (size + 1));
for (int i = 0; i <= size; i++)
array[i] = NULL;
return (array);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %eax
addl $0x1, %eax
cltq
shlq $0x3, %rax
movl %eax, %esi
callq 0xd750
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jg 0xd9c4
movq -0x18(%rbp), %ra... | Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::insert(char*, char) | char *Tools::insert(char *base, char add)
{
int base_length = length(base);
char *array = malloc(base_length + 1);
int i = 0;
for (; i < base_length; i++)
array[i] = base[i];
array[i] = add;
return (array);
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movq -0x10(%rbp), %rsi
callq 0xd830
movq -0x30(%rbp), %rdi
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %esi
addl $0x1, %esi
callq 0xd750
movq %rax, -0x20... | Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::cnf(char*) | int Tools::cnf(char *str)
{
if (str) {
free(str);
return (1);
}
return (0);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xda89
movq -0x18(%rbp), %rdi
callq 0x2220
movl $0x1, -0x4(%rbp)
jmp 0xda90
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::split(char*, char) | char **Tools::split(char *array, char sep)
{
char **split = mmalloc(count(array, sep) + 1);
int floor = 0;
int previous = 0;
char *append = NULL;
for (int i = 0; i < Tools::length(array); i++) {
if (array[i] == sep) {
floor++;
} else {
if (i == 0 || previous ... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq -0x10(%rbp), %rsi
movsbl -0x11(%rbp), %edx
callq 0xd910
movq -0x40(%rbp), %rdi
movl %eax, %esi
addl $0x1, %esi
callq 0xd970
movq %rax, -0x20(%rbp... | Neotoxic-off[P]Zest/src/Tools.cpp |
Tools::string_to_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | char *Tools::string_to_array(std::string str)
{
int size = str.length();
char *_new_ = malloc(sizeof(char) * (size + 1));
for (int i = 0; i < size; i++)
_new_[i] = str[i];
return (_new_);
} | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rsi, -0x40(%rbp)
movq %rdi, %rax
movq -0x40(%rbp), %rdi
movq %rdi, -0x38(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
callq 0x2290
movq -0x30(%rbp), %rdi
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
clt... | Neotoxic-off[P]Zest/src/Tools.cpp |
dsemu::bus::read(unsigned short) | byte read(ushort address) {
if (address < 0x8000) {
return cart::read(address); // memory::read(address);
} else if (address < 0xA000) {
return memory::read(address);
} else if (address < 0xFE00) {
return memory::read(address);
} else if (address < 0xF... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movw %di, %ax
movw %ax, -0x4(%rbp)
movzwl -0x4(%rbp), %eax
cmpl $0x8000, %eax # imm = 0x8000
jge 0x1347b
movzwl -0x4(%rbp), %edi
callq 0x14230
movb %al, -0x1(%rbp)
jmp 0x1351c
movzwl -0x4(%rbp), %eax
cmpl $0xa000, %eax # imm = 0xA000
jge 0x13497
movzwl -0x... | rockytriton[P]dreamsys_emu_gb/src/bus.cpp |
dsemu::bus::write(unsigned short, unsigned char) | void write(ushort address, byte b) {
if (address < 0x8000) {
cart::control(address, b);
} else if (address < 0xA000) {
if (address == 0xDD00 || address == 0xDD01) {
cout << "WRITING TO " << Short(address) << " = " << Byte(b) << endl;
sleep(2);
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movw %di, %cx
movw %cx, -0x2(%rbp)
movb %al, -0x3(%rbp)
movzwl -0x2(%rbp), %eax
cmpl $0x8000, %eax # imm = 0x8000
jge 0x135c5
movw -0x2(%rbp), %ax
movzwl %ax, %edi
movzbl -0x3(%rbp), %esi
callq 0x14260
jmp 0x13711
movzwl -0x2(%rbp), %eax
cmpl $0xa000,... | rockytriton[P]dreamsys_emu_gb/src/bus.cpp |
dsemu::cart::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | bool load(const string &romFile) {
std::ifstream in(romFile, std::ios::binary);
if (!in) {
cout << "Unable to open ROM: " << romFile << " - " << strerror(errno) << endl;
return false;
}
if (g_romData != nullptr) {
delete[] g_romData;
}
in.seekg(0, in.end);
g_romSiz... | pushq %rbp
movq %rsp, %rbp
subq $0x380, %rsp # imm = 0x380
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x218(%rbp), %rdi
movl $0x4, %edx
callq 0x3440
movq -0x218(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x218(%rbp,%rax), %rdi
callq 0x3150
movb %al, -0x243(%rbp)
jmp 0x13a74
movb -0x243(%rbp), %al
test... | rockytriton[P]dreamsys_emu_gb/src/cart.cpp |
dsemu::cpu::push(unsigned short) | void push(ushort s) {
setReg16Value(regSP, getReg16Value(regSP) - 2);
bus::write(getReg16Value(regSP), s);
THESTACK.push_back(s & 0xFF);
THESTACK.push_back((s >> 8) & 0xFF);
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movw %di, %ax
movw %ax, -0x2(%rbp)
leaq 0x1b226(%rip), %rdi # 0x2f59c
callq 0x15070
movzwl %ax, %eax
subl $0x2, %eax
leaq 0x1b214(%rip), %rdi # 0x2f59c
movzwl %ax, %esi
callq 0x15030
leaq 0x1b205(%rip), %rdi # 0x2f59c
callq 0x15070
movzwl %ax, %edi
movzwl -0x2(%rb... | rockytriton[P]dreamsys_emu_gb/src/cpu.cpp |
dsemu::cpu::pop() | byte pop() {
byte lo = bus::read(getReg16Value(regSP));
setReg16Value(regSP, getReg16Value(regSP) + 1);
THESTACK.pop_back();
return lo;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x1b13d(%rip), %rdi # 0x2f59c
callq 0x15070
movzwl %ax, %edi
callq 0x13450
movb %al, -0x1(%rbp)
leaq 0x1b126(%rip), %rdi # 0x2f59c
callq 0x15070
movzwl %ax, %eax
addl $0x1, %eax
leaq 0x1b114(%rip), %rdi # 0x2f59c
movzwl %ax, %esi
callq 0x15030
leaq 0x1b121(%r... | rockytriton[P]dreamsys_emu_gb/src/cpu.cpp |
dsemu::cpu::init() | void init() {
regPC = 0x100;
*((short *)®AF) = 0x01B0;
*((short *)®BC) = 0x0013;
*((short *)®DE) = 0x00D8;
*((short *)®HL) = 0x014D;
*((short *)®SP) = 0xFFFE;
init_handlers();
//olog.open("./emu.log");
} | pushq %rbp
movq %rsp, %rbp
movw $0x100, 0x1b0a1(%rip) # imm = 0x100
movw $0x1b0, 0x1b08a(%rip) # imm = 0x1B0
movw $0x13, 0x1b083(%rip) # 0x2f592
movw $0xd8, 0x1b07c(%rip) # 0x2f594
movw $0x14d, 0x1b075(%rip) # imm = 0x14D
movw $0xfffe, 0x1b072(%rip) # imm = 0xFFFE
callq 0x1d130
popq %rbp
retq
nopw %cs:(%ra... | rockytriton[P]dreamsys_emu_gb/src/cpu.cpp |
dsemu::cpu::tick() | void tick() {
totalTicks++;
if (remainingTicks) {
remainingTicks--;
return;
}
if (!haltWaitingForInterrupt) {
byte b = bus::read(regPC);
OpCode opCode = opCodes[b];
n++;
if ((n % 1000) == 0) {
usleep(1);
}
if (n == ... | pushq %rbp
movq %rsp, %rbp
subq $0x360, %rsp # imm = 0x360
movq 0x1b05e(%rip), %rax # 0x2f5b0
addq $0x1, %rax
movq %rax, 0x1b053(%rip) # 0x2f5b0
cmpl $0x0, 0x1b03c(%rip) # 0x2f5a0
je 0x1457a
movl 0x1b034(%rip), %eax # 0x2f5a0
addl $-0x1, %eax
movl %eax, 0x1b02b(%rip) # 0x2f5a0
jmp 0x14ca8... | rockytriton[P]dreamsys_emu_gb/src/cpu.cpp |
dsemu::cpu::handleInterrupt(unsigned char, bool, bool) | void handleInterrupt(byte flag, bool request, bool pcp1) {
if (flag & 1) {
if (request) vbEnabled = true; else vbRequested = true;
//cout << "V-Blank " << (request ? "requested" : "enabled") << endl;
if (request) {
intRequestFlag = flag;
}
if (request && interr... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dl, %al
movb %sil, %cl
movb %dil, %dl
movb %dl, -0x1(%rbp)
andb $0x1, %cl
movb %cl, -0x2(%rbp)
andb $0x1, %al
movb %al, -0x3(%rbp)
movzbl -0x1(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x14d98
testb $0x1, -0x2(%rbp)
je 0x14cfd
movb $0x1, 0x1a8aa(%rip) # 0x2f5a5... | rockytriton[P]dreamsys_emu_gb/src/cpu.cpp |
dsemu::run() | void run() {
io::init();
cpu::init();
ppu::init();
while(true) {
if (cpu::paused) {
sleepMs(1); //500);
continue;
}
cpu::tick();
ppu::tick();
}
} | pushq %rbp
movq %rsp, %rbp
callq 0x16520
callq 0x144f0
callq 0x21c80
leaq 0x191ee(%rip), %rax # 0x2f5a8
testb $0x1, (%rax)
je 0x163cb
movl $0x1, %edi
callq 0x163e0
jmp 0x163b3
callq 0x14540
callq 0x221d0
jmp 0x163b3
nopw (%rax,%rax)
| rockytriton[P]dreamsys_emu_gb/src/emu.cpp |
dsemu::io::writeDMA(unsigned char) | void writeDMA(byte b) {
for (int i=0; i<0xA0; i++) {
byte d = bus::read((b * 0x100) + i);
bus::write(0xFE00 + i, d);
}
cpu::extraCycles = 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
movl $0x0, -0x8(%rbp)
cmpl $0xa0, -0x8(%rbp)
jge 0x164f2
movzbl -0x1(%rbp), %eax
shll $0x8, %eax
addl -0x8(%rbp), %eax
movzwl %ax, %edi
callq 0x13450
movb %al, -0x9(%rbp)
movl -0x8(%rbp), %eax
addl $0xfe00, %eax # imm = 0xFE00
mov... | rockytriton[P]dreamsys_emu_gb/src/io.cpp |
dsemu::io::init() | void init() {
IO_WRITE_HANDLER noWrite = [](byte b) -> void { };
handlerMap[0xFF43] = std::make_pair(readScrollX, writeScrollX);
handlerMap[0xFF42] = std::make_pair(ppu::getYScroll, ppu::setYScroll);
handlerMap[0xFF40] = std::make_pair(readLCDControl, writeLCDControl);
handlerMap[0xFF41] = std::mak... | pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
leaq -0x9(%rbp), %rdi
callq 0x167c0
movq %rax, -0x8(%rbp)
leaq -0x12f(%rip), %rdi # 0x16410
leaq -0x126(%rip), %rsi # 0x16420
callq 0x17300
movq %rax, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movw $0xff43, -0x22(%rbp) # imm = 0xFF43
leaq 0x19088(%rip), %rdi # 0x2f5... | rockytriton[P]dreamsys_emu_gb/src/io.cpp |
dsemu::io::read(unsigned short) | byte read(ushort address) {
HANDLER_MAP::iterator it = handlerMap.find(address);
if (it != handlerMap.end()) {
return it->second.first();
}
if (address == 0xFF00) {
byte output = 0xCF;
if (!selButtons) {
if (startDown) {
output &= ~(1 << 3);
... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movw %di, %ax
movw %ax, -0x4(%rbp)
leaq 0x18bf2(%rip), %rdi # 0x2f5e8
leaq -0x4(%rbp), %rsi
callq 0x174c0
movq %rax, -0x10(%rbp)
leaq 0x18bde(%rip), %rdi # 0x2f5e8
callq 0x17520
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x174f0
testb $... | rockytriton[P]dreamsys_emu_gb/src/io.cpp |
dsemu::io::write(unsigned short, unsigned char) | void write(ushort address, byte b) {
HANDLER_MAP::iterator it = handlerMap.find(address);
if (it != handlerMap.end()) {
it->second.second(b);
memory::write(address, b);
return;
}
if (DEBUG) cout << " NO WRITE MAP: " << Short(address) << endl;
//sleep(1);
if (addre... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %sil, %al
movw %di, %cx
movw %cx, -0x2(%rbp)
movb %al, -0x3(%rbp)
leaq 0x189cc(%rip), %rdi # 0x2f5e8
leaq -0x2(%rbp), %rsi
callq 0x174c0
movq %rax, -0x10(%rbp)
leaq 0x189b8(%rip), %rdi # 0x2f5e8
callq 0x17520
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x... | rockytriton[P]dreamsys_emu_gb/src/io.cpp |
main | int main(int argc, char **argv) {
cout << "Starting main.." << endl;
std::memset(ram, 0, 0xFFFF);
dsemu::cart::load((const char *)argv[1]);
std::memcpy(ram, dsemu::cart::g_romData, 0x8000);
ui::init();
std::thread t(dsemu::run);
int prevFrame = 0;
while(true) {
sleepMs(1);... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x16553(%rip), %rdi # 0x2efd0
leaq 0xb6f5(%rip), %rsi # 0x24179
callq 0x32c0
movq %rax, %rdi
movq 0x1651d(%rip), %rsi # 0x2efb0
callq 0x3310
leaq 0x26bb1(%rip), %rdi # 0x3f650
xorl %esi, ... | rockytriton[P]dreamsys_emu_gb/src/main.cpp |
dsemu::mappers::MPC1::read(unsigned short) | byte MPC1::read(ushort address) {
if (!init) {
cout << "INIT" << endl;
memcpy(data, cart::g_romData, 0x8000);
init = true;
}
/*
if (init) {
//cout << "READ: " << Short(address) << endl;
if (switched && address >= 0x4000 && bank > 1) {
cout << "READ: " << ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movw %si, %ax
movq %rdi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
testb $0x1, 0x15f5f(%rip) # 0x2f631
jne 0x19718
movq 0x158f5(%rip), %rdi # 0x2efd0
leaq 0xab0c(%rip), %rsi # 0x241ee
callq 0x32c0
movq %rax, %rdi
movq 0x158bf... | rockytriton[P]dreamsys_emu_gb/src/mappers.cpp |
dsemu::mappers::MPC1::control(unsigned short, unsigned char) | void MPC1::control(ushort address, byte b) {
cout << "CONTROL" << endl;
if (!init) {
memcpy(data, cart::g_romData, 0x8000);
init = true;
}
/*
if (init) {
if (address >= 0x2000 && address <= 0x3FFF) {
bank = b & 0x1F;
if(bank == 0 || bank == 0x20 || bank =... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movw %si, %cx
movq %rdi, -0x8(%rbp)
movw %cx, -0xa(%rbp)
movb %al, -0xb(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq 0x15829(%rip), %rdi # 0x2efd0
leaq 0xaa57(%rip), %rsi # 0x24205
callq 0x32c0
movq %rax, %rdi
movq 0x157f3(%rip), %rsi # 0... | rockytriton[P]dreamsys_emu_gb/src/mappers.cpp |
dsemu::memory::init() | void init() {
ram[0xFF05] = 0x00;
ram[0xFF06] = 0x00;
ram[0xFF07] = 0x00;
ram[0xFF10] = 0x80;
ram[0xFF11] = 0xBF;
ram[0xFF12] = 0xF3;
ram[0xFF14] = 0xBF;
ram[0xFF16] = 0x3F;
ram[0xFF17] = 0x00;
ram[0xFF19] = 0xBF;
ram[0xFF1A] = 0x7F... | pushq %rbp
movq %rsp, %rbp
movb $0x0, 0x35c9a(%rip) # 0x4f555
movb $0x0, 0x35c94(%rip) # 0x4f556
movb $0x0, 0x35c8e(%rip) # 0x4f557
movb $-0x80, 0x35c90(%rip) # 0x4f560
movb $-0x41, 0x35c8a(%rip) # 0x4f561
movb $-0xd, 0x35c84(%rip) # 0x4f562
movb $-0x41, 0x35c7f(%rip) # 0x4f564
movb $0x3f, 0x35c7a(... | rockytriton[P]dreamsys_emu_gb/src/memory.cpp |
dsemu::memory::write(unsigned short, unsigned char) | void write(ushort address, byte value) {
ram[address] = value;
if (address == 0xFFFF) {
cout << "\t - IE EN REGISTER WRITE: " << Byte(value) << endl;
cpu::handleInterrupt(value, false);
} else if (address == 0xFF0F) {
cout << "\t - IE FL REGISTER WRITE: " << ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movw %di, %cx
movw %cx, -0x2(%rbp)
movb %al, -0x3(%rbp)
movb -0x3(%rbp), %dl
movzwl -0x2(%rbp), %eax
movl %eax, %ecx
leaq 0x25c3b(%rip), %rax # 0x3f650
movb %dl, (%rax,%rcx)
movzwl -0x2(%rbp), %eax
cmpl $0xffff, %eax # imm = 0xFFFF
jne 0x19a75
mov... | rockytriton[P]dreamsys_emu_gb/src/memory.cpp |
dsemu::cpu::initParamTypeMap() | void initParamTypeMap() {
paramTypeMap[A] = std::make_pair(®AF, RPTHi);
paramTypeMap[B] = std::make_pair(®BC, RPTHi);
paramTypeMap[C] = std::make_pair(®BC, RPTLo);
paramTypeMap[D] = std::make_pair(®DE, RPTHi);
paramTypeMap[E] = std::make_pair(®DE, RPTLo);
paramTypeMap[H] = std::ma... | pushq %rbp
movq %rsp, %rbp
subq $0x2e0, %rsp # imm = 0x2E0
leaq 0x15a7e(%rip), %rax # 0x2f590
movq %rax, -0x2b8(%rbp)
movq %rax, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x1d7b0
movl %edx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::regFromBits(unsigned char) | byte *regFromBits(byte reg) {
byte *pReg = nullptr;
switch(reg) {
case 0: pReg = ®BC.hi; break; //cout << "GOT B" << endl; break;
case 1: pReg = ®BC.lo; break; // cout << "GOT C" << endl; break;
case 2: pReg = ®DE.hi; break; // cout << "GOT D" << endl; break;
case 3: pR... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
movq $0x0, -0x10(%rbp)
movzbl -0x1(%rbp), %eax
movq %rax, -0x18(%rbp)
subq $0x7, %rax
ja 0x1a384
movq -0x18(%rbp), %rax
leaq 0x9fa5(%rip), %rcx # 0x24278
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x152af(%rip), %rax ... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::getPointer(dsemu::cpu::ParamType, bool) | byte *getPointer(ParamType pt, bool hlAsRam = true) {
switch(pt) {
case A: return ®AF.hi;
case B: return ®BC.hi;
case C: return ®BC.lo;
case D: return ®DE.hi;
case E: return ®DE.lo;
case H: return ®HL.hi;
case L: return ®HL.lo;
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %sil, %al
movl %edi, -0xc(%rbp)
andb $0x1, %al
movb %al, -0xd(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x18(%rbp)
subq $0xe, %rax
ja 0x1a516
movq -0x18(%rbp), %rax
leaq 0x9ea9(%rip), %rcx # 0x24298
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x15191(%r... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleLDH(dsemu::cpu::OpCode const&) | int handleLDH(const OpCode &op) {
bool srcIsA = op.params[1] == A;
if (srcIsA) {
byte *p = getPointer(op.params[0]);
//cout << "READING B: " << Int64((uint64_t)p) << endl;
//cout << "B: " << Byte(*p) << endl;
bus::write(*p | 0xFF00, regAF.hi);
} else {
byte ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x20(%rax)
sete %al
andb $0x1, %al
movb %al, -0x9(%rbp)
testb $0x1, -0x9(%rbp)
je 0x1a5bb
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzbl (%ra... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::getAddrValue(dsemu::cpu::ParamType, short) | ushort getAddrValue(ParamType op, short srcValue) {
switch(op) {
case HL: return getReg16Value(regHL);
case AF: return getReg16Value(regAF);
case BC: return getReg16Value(regBC);
case DE: return getReg16Value(regDE);
case NN: return srcValue;
case N: return 0xFF00 | s... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movw %si, %ax
movl %edi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movl -0x8(%rbp), %eax
addl $-0x7, %eax
movl %eax, %ecx
movq %rcx, -0x18(%rbp)
subl $0x7, %eax
ja 0x1a698
movq -0x18(%rbp), %rax
leaq 0x9ca6(%rip), %rcx # 0x242d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%ra... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleLD(dsemu::cpu::OpCode const&) | int handleLD(const OpCode &op) {
RegParamType srcType = RegParamType::RPTHi;
RegParamType dstType;
Register *src;
Register *dst;
ushort srcValue = 0;
ushort dstValue = 0;
PTM::iterator dit = paramTypeMap.find(op.params[0]);
PTM::iterator sit = paramTypeMap.find(op.params[1]);
if ... | pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movl $0x1, -0xc(%rbp)
movw $0x0, -0x22(%rbp)
movw $0x0, -0x24(%rbp)
movq -0x8(%rbp), %rsi
addq $0x1c, %rsi
leaq 0x34f87(%rip), %rdi # 0x4f688
callq 0x1d9d0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rsi
addq $0x1c, %rsi
addq $0x4, %rsi
leaq 0x34f6b(%ri... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleCB(dsemu::cpu::OpCode const&) | int handleCB(const OpCode &op) {
int code = bus::read(regPC + 1);
byte reg = code & 7;
byte bitOp = (code >> 6) & 3;
byte bit = (code >> 3) & 7;
byte *pReg = regFromBits(reg);
if (bitOp) {
switch(bitOp) {
case 1:
setFlag(FlagZ, !((*pReg) & (1 << bit)));
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x148db(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
addl $0x1, %eax
movzwl %ax, %edi
callq 0x13450
movzbl %al, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
andl $0x7, %eax
movb %al, -0x15(%rbp)
movl -0x14(%rbp), %eax
sarl $0x6, %eax
andl $0... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::conditionalJump(unsigned short, dsemu::cpu::OpCode const&, bool&) | int conditionalJump(ushort location, const OpCode &op, bool &didJump) {
int diff = jumpCycleMap[op.value];
if (op.mode == ATypeJ) {
regPC = location;
didJump = true;
return 0;
} else if (op.mode == ATypeJ_C && getFlag(FlagC)) {
regPC = location;
didJump = true;
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movw %di, %ax
movw %ax, -0x6(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rsi
leaq 0x3453e(%rip), %rdi # 0x4f6c0
callq 0x1daf0
movzbl (%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x6, 0x18(%rax)
jne 0x1b1b8
movw -0x6(%rbp), %c... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleJumpRelative(dsemu::cpu::OpCode const&) | int handleJumpRelative(const OpCode &op) {
char b = bus::read(regPC + 1);
if ((byte)b == 0xfe) {
cout << "INF LOOP? " << endl;
sleep(5);
}
ushort location = regPC + b;
bool didJump;
return conditionalJump(location, op, didJump);
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x142db(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
addl $0x1, %eax
movzwl %ax, %edi
callq 0x13450
movb %al, -0x9(%rbp)
movzbl -0x9(%rbp), %eax
cmpl $0xfe, %eax
jne 0x1b30b
movq 0x13cea(%rip), %rdi # 0x2efd0
leaq 0x91a1(%rip), %rsi # 0x24... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleJump(dsemu::cpu::OpCode const&) | int handleJump(const OpCode &op) {
ushort location = 0;
bool didJump;
switch(op.params[0]) {
case NN:
location = toShort(bus::read(regPC + 1), bus::read(regPC + 2));
break;
case HL:
location = toShort(regHL.lo, regHL.hi);
break;
defaul... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movw $0x0, -0xa(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x10(%rbp)
subl $0x9, %eax
je 0x1b3ae
jmp 0x1b363
movl -0x10(%rbp), %eax
subl $0xd, %eax
jne 0x1b3d0
jmp 0x1b36d
leaq 0x1422a(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
addl... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleDAA(dsemu::cpu::OpCode const&) | int handleDAA(const OpCode &op) {
if (!getFlag(FlagN)) {
ushort a = regAF.hi;
byte nl = (regAF.hi & 0x0f);
bool finalVal = false;
if (getFlag(FlagH) || nl > 0x09) {
a += 6;
}
if (getFlag(FlagC) || (a & 0xFFF0) > 0x90) {
a += 0x60;
... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x6, %edi
callq 0x1dac0
testb $0x1, %al
jne 0x1b4da
leaq 0x1414b(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
movw %ax, -0xa(%rbp)
leaq 0x1413c(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
andl $0xf, %eax
movb %al, -0xb(%rbp)
movb $0x0, -0x... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handlePOP(dsemu::cpu::OpCode const&) | int handlePOP(const OpCode &op) {
ushort *p = (ushort *)getPointer(op.params[0], false);
ushort s = spop();
cout << "POPPED VALUE: " << Short(s) << endl;
if (p == (ushort *)®AF) {
*p = s & 0xFFF0;
} else {
*p = s;
}
if (op.value == 0xF1) {
//sleep(2);
}
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
xorl %esi, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
callq 0x144b0
movw %ax, -0x12(%rbp)
movq 0x13a22(%rip), %rdi # 0x2efd0
leaq 0x8ef2(%rip), %rsi # 0x244a7
callq 0x32c0
movq %rax, -0x20(%rbp)
leaq -0... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handlePUSH(dsemu::cpu::OpCode const&) | int handlePUSH(const OpCode &op) {
ushort *p = (ushort *)getPointer(op.params[0], false);
push(*p);
cout << "PUSHED: " << Short(*p) << endl;
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
xorl %esi, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzwl (%rax), %edi
callq 0x14360
movq 0x1396f(%rip), %rdi # 0x2efd0
leaq 0x8e4e(%rip), %rsi # 0x244b6
callq 0x32c0
movq %rax... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleCALL(dsemu::cpu::OpCode const&) | int handleCALL(const OpCode &op) {
ushort lca = regPC + op.length;
bool didJump;
ushort location = toShort(bus::read(regPC + 1), bus::read(regPC + 2)) - op.length;
//lastCallAddress = regPC + op.length;
//for (int i=0; i<callSize; i++) {
// cout << " ";
//}
//char sz[256];
//spr... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x13edb(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
movq -0x8(%rbp), %rcx
movzbl 0x14(%rcx), %ecx
addl %ecx, %eax
movw %ax, -0xa(%rbp)
leaq 0x13ec3(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
addl $0x1, %eax
movzwl %ax, %edi
callq 0x13450
movb %... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleRET(dsemu::cpu::OpCode const&) | int handleRET(const OpCode &op) {
bool didJump = false;
ushort location = cpu::spop();
//cout << "HANDLING RET: " << Short(lastCallAddress) << " - " << Short(location) << endl;
int ret = conditionalJump(location - 1, op, didJump);
if (regPC == 0x3017) {
regPC = regPC + 0;
}
i... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movb $0x0, -0x9(%rbp)
callq 0x144b0
movw %ax, -0xc(%rbp)
movzwl -0xc(%rbp), %eax
subl $0x1, %eax
movq -0x8(%rbp), %rsi
leaq -0x9(%rbp), %rdx
movzwl %ax, %edi
callq 0x1b160
movl %eax, -0x10(%rbp)
leaq 0x13c64(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleRETI(dsemu::cpu::OpCode const&) | int handleRETI(const OpCode &op) {
interruptsEnabled = true;
cameFromI = true;
int n = handleRET(op);
cameFromI = false;
//cout << "RETI - AFTER RET: " << n << " - " << Short(regPC) << endl;
return n;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movb $0x1, 0x33b66(%rip) # 0x4f6b9
movb $0x1, 0x33b9e(%rip) # 0x4f6f8
movq -0x8(%rbp), %rdi
callq 0x1b900
movl %eax, -0xc(%rbp)
movb $0x0, 0x33b8b(%rip) # 0x4f6f8
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::setFlags(unsigned char, unsigned char, bool, bool) | void setFlags(byte first, byte second, bool add, bool withCarry) {
if (add) {
unsigned int a = first + second + (withCarry ? getFlag(FlagC) : 0);
byte cf = getFlag(FlagC);
//setFlag(FlagZ, (a & 0xFF) == 0);
setFlag(FlagZ, !(a & 0xFF));
//cout << "AF: 2: " << Byte(regAF.lo) <<... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %cl, %al
movb %dl, %cl
movb %sil, %dl
movb %dil, %sil
movb %sil, -0x1(%rbp)
movb %dl, -0x2(%rbp)
andb $0x1, %cl
movb %cl, -0x3(%rbp)
andb $0x1, %al
movb %al, -0x4(%rbp)
testb $0x1, -0x3(%rbp)
je 0x1bc88
movzbl -0x1(%rbp), %eax
movzbl -0x2(%rbp), %ecx
addl %ecx, %eax
movl... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleADC(dsemu::cpu::OpCode const&) | int handleADC(const OpCode &op) {
byte *val = getPointer(op.params[1]);
if (op.value == 0xCE) {
byte t = bus::read(regPC + 1);
unsigned int i = regAF.hi + t + getFlag(FlagC) >= 0x100;
//setFlags(regAF.hi, t, true, true);
setFlag(FlagN, false);
setFlag(FlagH, ((regAF.hi&0... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xce, %eax
jne 0x1bf00
leaq 0x137b4(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
addl $0x1, %eax
movzwl %... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleADD(dsemu::cpu::OpCode const&) | int handleADD(const OpCode &op) {
if (op.params[0] == A) {
byte *p = getPointer(op.params[1]);
ushort a = regAF.hi + *p;
setFlags(regAF.hi, *p, true, false);
regAF.hi = a & 0x00FF;
} else if (op.params[0] == SP) {
char e = bus::read(regPC + 1);
setFlags(getReg16V... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x1c(%rax)
jne 0x1bfff
movq -0x8(%rbp), %rax
movl 0x20(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
leaq 0x135de(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleSUB(dsemu::cpu::OpCode const&) | int handleSUB(const OpCode &op) {
byte *val = getPointer(op.params[0]);
short a = regAF.hi - *val;
setFlags(regAF.hi, *val, false, false);
regAF.hi = a & 0x00FF;
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
leaq 0x13448(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
subl %ecx, %eax
movw %ax, -0x12(%rbp)
leaq 0x13430(%... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleSBC(dsemu::cpu::OpCode const&) | int handleSBC(const OpCode &op) {
byte *val = getPointer(op.params[0]);
short a = regAF.hi - *val - getFlag(FlagC);
setFlags(regAF.hi, *val, false, true);
regAF.hi = a & 0x00FF;
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
leaq 0x133c8(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
subl %ecx, %eax
movl %eax, -0x18(%rbp)
movl $0x4, %e... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleAND(dsemu::cpu::OpCode const&) | int handleAND(const OpCode &op) {
byte *val = getPointer(op.params[0]);
regAF.hi &= *val;
setFlag(FlagZ, regAF.hi == 0);
setFlag(FlagN, false);
setFlag(FlagH, true);
setFlag(FlagC, 0);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %ecx
leaq 0x13321(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
andl %ecx, %eax
movb %al, %cl
leaq 0x13312(%rip), %r... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleOR(dsemu::cpu::OpCode const&) | int handleOR(const OpCode &op) {
byte *val = getPointer(op.params[0]);
regAF.hi |= *val;
setFlag(FlagZ, regAF.hi == 0);
setFlag(FlagN, false);
setFlag(FlagH, false);
setFlag(FlagC, 0);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %ecx
leaq 0x13281(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
orl %ecx, %eax
movb %al, %cl
leaq 0x13272(%rip), %ra... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleXOR(dsemu::cpu::OpCode const&) | int handleXOR(const OpCode &op) {
byte *val = getPointer(op.params[0]);
//cout << "XORING VAL: " << Byte(*val) << endl;
regAF.hi ^= *val;
setFlag(FlagZ, regAF.hi == 0);
setFlag(FlagN, false);
setFlag(FlagH, false);
setFlag(FlagC, 0);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %edi
movl $0x1, %esi
callq 0x1a3c0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %ecx
leaq 0x131f1(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
xorl %ecx, %eax
movb %al, %cl
leaq 0x131e2(%rip), %r... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::getVal(dsemu::cpu::ParamType) | byte getVal(ParamType pt) {
switch(pt) {
case A: return regAF.hi;
case B: return regBC.hi;
case C: return regBC.lo;
case D: return regDE.hi;
case E: return regDE.lo;
case H: return regHL.hi;
case L: return regHL.lo;
case N: return bus::read(regP... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %eax
movq %rax, -0x10(%rbp)
subq $0xc, %rax
ja 0x1c4e8
movq -0x10(%rbp), %rax
leaq 0x7f21(%rip), %rcx # 0x24348
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x13159(%rip), %rax # 0x2f590
movb 0x1(%rax), %al
movb %a... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleLDD(dsemu::cpu::OpCode const&) | int handleLDD(const OpCode &op) {
handleLD(op);
ushort *p = (ushort *)®HL;
(*p)--;
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1a6d0
leaq 0x1305a(%rip), %rax # 0x2f596
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw (%rax), %cx
addw $-0x1, %cx
movw %cx, (%rax)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleLDI(dsemu::cpu::OpCode const&) | int handleLDI(const OpCode &op) {
handleLD(op);
ushort *p = (ushort *)®HL;
(*p)++;
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1a6d0
leaq 0x1301a(%rip), %rax # 0x2f596
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movw (%rax), %cx
addw $0x1, %cx
movw %cx, (%rax)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleINC(dsemu::cpu::OpCode const&) | int handleINC(const OpCode &op) {
ushort val = 0;
ushort prev = 0;
switch(op.params[0]) {
case A: prev = regAF.hi++; val = regAF.hi; break;
case B: prev = regBC.hi++; val = regBC.hi; break;
case C: prev = regBC.lo++; val = regBC.lo; break;
case D: prev = regDE.hi++; val = re... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movw $0x0, -0x12(%rbp)
movw $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movq %rax, -0x20(%rbp)
subq $0xa, %rax
ja 0x1c888
movq -0x20(%rbp), %rax
leaq 0x7da4(%rip), %rcx # 0x2437c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleDEC(dsemu::cpu::OpCode const&) | int handleDEC(const OpCode &op) {
ushort val = 0;
switch(op.params[0]) {
case A: regAF.hi--; val = regAF.hi; break;
case B: regBC.hi--; val = regBC.hi; break;
case C: regBC.lo--; val = regBC.lo; break;
case D: regDE.hi--; val = regDE.hi; break;
case E: regDE.lo--; val = ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movw $0x0, -0x12(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movq %rax, -0x20(%rbp)
subq $0xa, %rax
ja 0x1cb81
movq -0x20(%rbp), %rax
leaq 0x7a66(%rip), %rcx # 0x243a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x12c3e(%rip),... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleRLA(dsemu::cpu::OpCode const&) | int handleRLA(const OpCode &op) {
byte cf = getFlag(FlagC);
setFlag(FlagC, !!(regAF.hi & (1 << 7)));
regAF.hi <<= 1;
regAF.hi += cf;
setFlag(FlagZ, false);
setFlag(FlagH, false);
setFlag(FlagN, false);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x4, %edi
callq 0x1dac0
andb $0x1, %al
movb %al, -0x9(%rbp)
leaq 0x1295e(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
movzbl %al, %esi
andl $0x1, %esi
movl $0x4, %edi
ca... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleRLCA(dsemu::cpu::OpCode const&) | int handleRLCA(const OpCode &op) {
byte b = !!(regAF.hi & 0x80);
regAF.hi <<= 1;
regAF.hi |= b;
setFlag(FlagC, b);
setFlag(FlagZ, false);
setFlag(FlagH, false);
setFlag(FlagN, false);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x128bd(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x9(%rbp)
leaq 0x1289e(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
shll %eax
movb %al,... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleRRA(dsemu::cpu::OpCode const&) | int handleRRA(const OpCode &op) {
byte carry = getFlag(FlagC);
setFlag(FlagC, regAF.hi & 1);
regAF.hi >>= 1;
regAF.hi |= (carry << 7);
setFlag(FlagZ, false);
setFlag(FlagH, false);
setFlag(FlagN, false);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x4, %edi
callq 0x1dac0
andb $0x1, %al
movb %al, -0x9(%rbp)
leaq 0x127fe(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
movzbl %al, %esi
andl $0x1, %esi
movl $0x4, %edi
callq 0x1da80
leaq 0x127da(%rip), %... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleCPL(dsemu::cpu::OpCode const&) | int handleCPL(const OpCode &op) {
regAF.hi = ~regAF.hi;
setFlag(FlagH, true);
setFlag(FlagN, true);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x1275d(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
xorl $-0x1, %eax
movb %al, %cl
leaq 0x1274d(%rip), %rax # 0x2f590
movb %cl, 0x1(%rax)
movl $0x5, %edi
movl $0x1, %esi
callq 0x1da80
movl $0x6, %edi
movl $0x1, %esi
callq 0x1da80
xorl %eax,... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleRRCA(dsemu::cpu::OpCode const&) | int handleRRCA(const OpCode &op) {
byte b = regAF.hi & 1;
regAF.hi >>= 1;
regAF.hi |= b << 7;
if (b) {
setFlag(FlagC, true);
} else {
setFlag(FlagC, false);
}
setFlag(FlagZ, false);
setFlag(FlagH, false);
setFlag(FlagN, false);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x1270d(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
andl $0x1, %eax
movb %al, -0x9(%rbp)
leaq 0x126fc(%rip), %rax # 0x2f590
movzbl 0x1(%rax), %eax
sarl %eax
movb %al, %cl
leaq 0x126ed(%rip), %rax # 0x2f590
movb %cl, 0x1(%rax)
movzbl -0x... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleSCF(dsemu::cpu::OpCode const&) | int handleSCF(const OpCode &op) {
setFlag(FlagH, false);
setFlag(FlagN, false);
setFlag(FlagC, true);
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x5, %edi
xorl %esi, %esi
callq 0x1da80
movl $0x6, %edi
xorl %esi, %esi
callq 0x1da80
movl $0x4, %edi
movl $0x1, %esi
callq 0x1da80
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleCCF(dsemu::cpu::OpCode const&) | int handleCCF(const OpCode &op) {
setFlag(FlagH, false);
setFlag(FlagN, false);
setFlag(FlagC, !getFlag(FlagC));
return 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x5, %edi
xorl %esi, %esi
callq 0x1da80
movl $0x6, %edi
xorl %esi, %esi
callq 0x1da80
movl $0x4, %edi
callq 0x1dac0
xorb $-0x1, %al
movzbl %al, %esi
andl $0x1, %esi
movl $0x4, %edi
callq 0x1da80
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopl ... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handleRST(dsemu::cpu::OpCode const&) | int handleRST(const OpCode &op) {
push((ushort)(regPC + 1));
switch(op.params[0]) {
case x00: regPC = 0x00; break;
case x08: regPC = 0x08; break;
case x10: regPC = 0x10; break;
case x18: regPC = 0x18; break;
case x20: regPC = 0x20; break;
case x28: regPC = 0x28; ... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x1259b(%rip), %rax # 0x2f59e
movzwl (%rax), %eax
incl %eax
movzwl %ax, %edi
callq 0x14360
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
addl $-0xf, %eax
movl %eax, %ecx
movq %rcx, -0x10(%rbp)
subl $0x7, %eax
ja 0x1d0b3
movq -0x10(%rbp), %rax
leaq... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::init_handlers() | void init_handlers() {
handlerMap[LD] = handleLD;
handlerMap[LDI] = handleLDI;
handlerMap[LDD] = handleLDD;
handlerMap[NOP] = handleNOP;
handlerMap[JP] = handleJump;
handlerMap[JR] = handleJumpRelative;
handlerMap[XOR] = handleXOR;
handlerMap[OR] = handleOR;
handlerMap[AND] = handleA... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movl $0x1, -0x4(%rbp)
leaq 0x3250f(%rip), %rdi # 0x4f658
leaq -0x4(%rbp), %rsi
callq 0x1dbf0
leaq -0x2a89(%rip), %rcx # 0x1a6d0
movq %rcx, (%rax)
movl $0x2, -0x8(%rbp)
leaq 0x324ee(%rip), %rdi # 0x4f658
leaq -0x8(%rbp), %rsi
callq 0x1dbf0
leaq -0xc1a(%rip), %rcx ... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
dsemu::cpu::handle_op(dsemu::cpu::OpCode&) | int handle_op(OpCode &opCode) {
std::map<Op, HANDLER>::iterator it = handlerMap.find(opCode.op);
if (it == handlerMap.end()) {
cout << "UNKNOWN OP CODE: " << Byte(opCode.value) << endl;
exit(-1);
}
int ret = it->second(opCode);
if (opCode.op != EI && eiCalled) {
eiCalled =... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rsi
addq $0x10, %rsi
leaq 0x3202d(%rip), %rdi # 0x4f658
callq 0x1dcd0
movq %rax, -0x10(%rbp)
leaq 0x3201d(%rip), %rdi # 0x4f658
callq 0x1dd30
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x1dd00
tes... | rockytriton[P]dreamsys_emu_gb/src/op_handler.cpp |
setBit(unsigned char&, unsigned char, bool) | inline void setBit(byte &b, byte n, bool on) {
if (on) {
b |= (1 << n);
} else {
b &= ~(1 << n);
}
} | pushq %rbp
movq %rsp, %rbp
movb %dl, %al
movb %sil, %cl
movq %rdi, -0x8(%rbp)
movb %cl, -0x9(%rbp)
andb $0x1, %al
movb %al, -0xa(%rbp)
testb $0x1, -0xa(%rbp)
je 0x1e983
movzbl -0x9(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movq -0x8(%rbp), %rax
movzbl (%rax), %ecx
orl %edx, %ecx
movb %cl, (%rax)
jmp 0x1e99c
movzbl -0x... | rockytriton[P]dreamsys_emu_gb/src/common.h |
dsemu::ppu::init() | void init() {
currentFrame = 0;
currentLine = 0;
scrollInfo.x = 0;
scrollInfo.y = 0;
memset(oamRAM, 0, sizeof(oamRAM));
videoBuffer = new unsigned long[256 * 256];
memset(videoBuffer, 0, 256 * 256 * sizeof(unsigned long));
cout << "VID BUFF: " << Int64((uint64_t)videoBuffer) << endl;
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, 0x32a86(%rip) # 0x54718
movb $0x0, 0x32a83(%rip) # 0x5471c
movb $0x0, 0x32a73(%rip) # 0x54713
movb $0x0, 0x32a6d(%rip) # 0x54714
leaq 0x32a72(%rip), %rdi # 0x54720
xorl %esi, %esi
movl $0xa0, %edx
callq 0x3180
movl $0x80000, %edi # imm ... | rockytriton[P]dreamsys_emu_gb/src/ppu.cpp |
dsemu::ppu::readOAM(unsigned short) | byte readOAM(ushort address) {
//cout << "READ DUMPING OAM RAM: " << Short(address) << " - " << Byte(memory::ram[address]) << " - " << endl;
for (int i=0; i<160; i++) {
//if ((i % 32) == 0) cout << endl;
//cout << " " << Byte(oamRAM[i]);
}
//cout << endl;
//sleep(2);
retur... | pushq %rbp
movq %rsp, %rbp
movw %di, %ax
movw %ax, -0x2(%rbp)
movl $0x0, -0x8(%rbp)
cmpl $0xa0, -0x8(%rbp)
jge 0x21d88
jmp 0x21d7d
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x21d72
movzwl -0x2(%rbp), %eax
movl %eax, %ecx
leaq 0x3298b(%rip), %rax # 0x54720
movb (%rax,%rcx), %al
popq %rbp
retq
n... | rockytriton[P]dreamsys_emu_gb/src/ppu.cpp |
dsemu::ppu::getSpritesOnLine(int) | vector<OAMEntry *> getSpritesOnLine(int lineNum) {
vector<OAMEntry *> entries;
for (int i=0; i<160; i += 4) {
OAMEntry *entry = (OAMEntry *)&oamRAM[i];
if (entry->y >= lineNum + 8 && entry->y < lineNum + 16) {
entries.push_back(entry);
}
}
return entries;
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movb $0x0, -0xd(%rbp)
callq 0x22420
movl $0x0, -0x14(%rbp)
cmpl $0xa0, -0x14(%rbp)
jge 0x21e6c
movslq -0x14(%rbp), %rcx
leaq 0x32912(%rip), %rax # 0x54720
addq %rcx, ... | rockytriton[P]dreamsys_emu_gb/src/ppu.cpp |
dsemu::ppu::getSpriteOnX(std::vector<dsemu::ppu::OAMEntry*, std::allocator<dsemu::ppu::OAMEntry*>>&, int) | OAMEntry *getSpriteOnX(vector<OAMEntry *> &sprites, int x) {
for (auto entry : sprites) {
if (entry->x >= x && entry->x < x + 8) {
return entry;
}
}
return nullptr;
} | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x22510
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x22540
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x22570
test... | rockytriton[P]dreamsys_emu_gb/src/ppu.cpp |
dsemu::ppu::drawLine(int) | void drawLine(int lineNum) {
int mapy = (lineNum + getYScroll()) % 256;
byte tileY = ((lineNum) % 8) * 2;
auto sprites = getSpritesOnLine(lineNum);
for (int x=0; x<XRES; x += 1) {
auto sprite = getSpriteOnX(sprites, x);
int mapx = (x + getXScroll()) % 256;
ushort bgTileNum = ... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x64(%rbp)
callq 0x17450
movb %al, %cl
movl -0x64(%rbp), %eax
movzbl %cl, %ecx
addl %ecx, %eax
movl $0x100, %ecx # imm = 0x100
cltd
idivl %ecx
movl %edx, -0x8(%rbp)
movl -0x4(%rbp), %eax
movl $0x8, %ecx
cltd
i... | rockytriton[P]dreamsys_emu_gb/src/ppu.cpp |
dsemu::ppu::tick() | void tick() {
int f = cpu::getTickCount() % (TICKS_PER_FRAME);
int l = f / 114;
if (l != currentLine && l < 144) {
if (DEBUG && !cpu::haltWaitingForInterrupt) cout << "PPU:> NEW LINE: " << l << " FRAME: " << currentFrame << endl;
drawLine(currentLine);
}
if (lcdStats & 0x40 && bus... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
callq 0x144e0
movl $0x4494, %ecx # imm = 0x4494
xorl %edx, %edx
divq %rcx
movl %edx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl $0x72, %ecx
cltd
idivl %ecx
movl %eax, -0x8(%rbp)
movl -0x8(%rbp), %eax
movzbl 0x32518(%rip), %ecx # 0x5471c
cmpl %ecx, %ea... | rockytriton[P]dreamsys_emu_gb/src/ppu.cpp |
dsemu::ui::init() | void init() {
SDL_Init(SDL_INIT_VIDEO);
SDL_CreateWindowAndRenderer(SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_RESIZABLE, &sdlWindow, &sdlRenderer);
screen = SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 32,
0x00FF0000,
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x20, %edi
callq 0x3280
movl $0x400, %edi # imm = 0x400
movl $0x300, %esi # imm = 0x300
movl $0x20, %edx
leaq 0x318b0(%rip), %rcx # 0x547e8
leaq 0x318b1(%rip), %r8 # 0x547f0
callq 0x3110
xorl %edi, %edi
movl $0x400, %esi # imm =... | rockytriton[P]dreamsys_emu_gb/src/ui.cpp |
dsemu::ui::displayTile(SDL_Surface*, unsigned short, unsigned short, int, int) | void displayTile(SDL_Surface *surface, ushort startLocation, ushort tileNum, int x, int y) {
SDL_Rect rc;
for (int tileY=0; tileY<16; tileY += 2) {
byte b1 = bus::read(startLocation + (tileNum * 16) + tileY);
byte b2 = bus::read(startLocation + (tileNum * 16) + 1 + tileY);
for... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movw %dx, %ax
movw %si, %dx
movq %rdi, -0x8(%rbp)
movw %dx, -0xa(%rbp)
movw %ax, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
movl %r8d, -0x14(%rbp)
movl $0x0, -0x28(%rbp)
cmpl $0x10, -0x28(%rbp)
jge 0x231e4
movzwl -0xa(%rbp), %eax
movzwl -0xc(%rbp), %ecx
shll $0x4, %ecx
addl %ecx, %eax... | rockytriton[P]dreamsys_emu_gb/src/ui.cpp |
dsemu::ui::updateDebugWindow() | void updateDebugWindow() {
int xDraw = 0;
int yDraw = 0;
int tileNum = 0;
for (int y=0; y<32; y++) {
for (int x=0; x<16; x++) {
displayTile(debugScreen, 0x8000, tileNum, xDraw + (x * scale), yDraw + (y * scale));
xDraw += (7 * scale);
tileNum++;
}
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x0, -0x4(%rbp)
movl $0x0, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
cmpl $0x20, -0x10(%rbp)
jge 0x232a5
movl $0x0, -0x14(%rbp)
cmpl $0x10, -0x14(%rbp)
jge 0x23283
movq 0x315ee(%rip), %rdi # 0x54820
movl -0xc(%rbp), %eax
movl -0x4(%rbp), %ecx
movl -0x1... | rockytriton[P]dreamsys_emu_gb/src/ui.cpp |
dsemu::ui::handleEvents() | void handleEvents() {
//io::startDown = true;
SDL_Event e;
if (SDL_PollEvent(&e) > 0)
{
SDL_UpdateWindowSurface(sdlWindow);
if (e.type == SDL_KEYDOWN && e.key.keysym.sym == SDLK_p) {
cpu::paused = !cpu::paused;
cout << "Paused: " << cpu::paused << endl;
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
leaq -0x38(%rbp), %rdi
callq 0x3190
cmpl $0x0, %eax
jle 0x237e4
movq 0x31397(%rip), %rdi # 0x547e8
callq 0x3370
cmpl $0x300, -0x38(%rbp) # imm = 0x300
jne 0x234b5
cmpl $0x70, -0x24(%rbp)
jne 0x234b5
leaq 0xc13c(%rip), %rax # 0x2f5a8
movb (%rax), %cl
xorb $-0x1, %... | rockytriton[P]dreamsys_emu_gb/src/ui.cpp |
main | int main(int argc, char *argv[]){
string classe, vet, tratador, saida, nome, sobrenome;
// Declarando o map das classes.
map <int, ANFIBIO_NATIVO> anfibios_nat;
map <int, ANFIBIO_EXOTICO> anfibios_ex;
map <int, MAMIFERO_NATIVO> mamiferos_nat;
map <int, MAMIFERO_EXOTICO> mamiferos_ex;
map <int, REPTIL_NATIVO> ... | pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x2810, %rsp # imm = 0x2810
movl $0x0, -0x14(%rbp)
movl %edi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xe2d0
leaq -0x60(%rbp), %rdi
callq 0xe2d0
leaq -0x80(%rbp), %rdi
callq 0xe2d0
leaq -0xa0(%rbp), %rdi
callq 0xe2d0
leaq -0xc0(%rb... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao_classe_vet_trat(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFE... | void exportacao_classe_vet_trat(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EX... | pushq %rbp
movq %rsp, %rbp
subq $0xc60, %rsp # imm = 0xC60
movq %r9, -0xc20(%rbp)
movq %r8, -0xc18(%rbp)
movq %rcx, -0xc10(%rbp)
movq %rdx, -0xc08(%rbp)
movq %rsi, -0xc00(%rbp)
movq %rdi, %rax
movq %rax, -0xbf8(%rbp)
movq 0x38(%rbp), %rdi
movq %rdi, -0xbe0(%rbp)
movq 0x30(%rbp), %rdi
movq %rdi, -0xbd0(%rbp)
... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao_classe_vet(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_NA... | void exportacao_classe_vet(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EXOTICO... | pushq %rbp
movq %rsp, %rbp
subq $0xae0, %rsp # imm = 0xAE0
movq %r9, -0xa98(%rbp)
movq %r8, -0xa90(%rbp)
movq %rcx, -0xa88(%rbp)
movq %rdx, -0xa80(%rbp)
movq %rsi, -0xa78(%rbp)
movq %rdi, %rax
movq %rax, -0xa70(%rbp)
movq 0x30(%rbp), %rdi
movq %rdi, -0xa68(%rbp)
movq 0x28(%rbp), %rdi
movq %rdi, -0xa50(%rbp)
... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao_classe_trat(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_N... | void exportacao_classe_trat(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EXOTIC... | pushq %rbp
movq %rsp, %rbp
subq $0xae0, %rsp # imm = 0xAE0
movq %r9, -0xa98(%rbp)
movq %r8, -0xa90(%rbp)
movq %rcx, -0xa88(%rbp)
movq %rdx, -0xa80(%rbp)
movq %rsi, -0xa78(%rbp)
movq %rdi, %rax
movq %rax, -0xa70(%rbp)
movq 0x30(%rbp), %rdi
movq %rdi, -0xa68(%rbp)
movq 0x28(%rbp), %rdi
movq %rdi, -0xa50(%rbp)
... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao_vet_trat(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_NATI... | void exportacao_vet_trat(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EXOTICO> ... | pushq %rbp
movq %rsp, %rbp
subq $0x600, %rsp # imm = 0x600
movq %r9, -0x5e8(%rbp)
movq %r8, -0x5e0(%rbp)
movq %rcx, -0x5d8(%rbp)
movq %rdx, -0x5d0(%rbp)
movq %rsi, -0x5c8(%rbp)
movq %rdi, %rax
movq %rax, -0x5c0(%rbp)
movq 0x30(%rbp), %rdi
movq %rdi, -0x588(%rbp)
movq 0x28(%rbp), %rdi
movq %rdi, -0x5a0(%rbp)
... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao_vet(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_NATIVO>>>... | void exportacao_vet(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EXOTICO> aves_... | pushq %rbp
movq %rsp, %rbp
subq $0x480, %rsp # imm = 0x480
movq %r9, -0x478(%rbp)
movq %r8, -0x470(%rbp)
movq %rcx, -0x468(%rbp)
movq %rdx, -0x460(%rbp)
movq %rsi, -0x458(%rbp)
movq %rdi, %rax
movq %rax, -0x450(%rbp)
movq 0x28(%rbp), %rdi
movq %rdi, -0x428(%rbp)
movq 0x20(%rbp), %rdi
movq %rdi, -0x438(%rbp)
... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao_trat(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_NATIVO>>... | void exportacao_trat(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EXOTICO> aves... | pushq %rbp
movq %rsp, %rbp
subq $0x480, %rsp # imm = 0x480
movq %r9, -0x478(%rbp)
movq %r8, -0x470(%rbp)
movq %rcx, -0x468(%rbp)
movq %rdx, -0x460(%rbp)
movq %rsi, -0x458(%rbp)
movq %rdi, %rax
movq %rax, -0x450(%rbp)
movq 0x28(%rbp), %rdi
movq %rdi, -0x428(%rbp)
movq 0x20(%rbp), %rdi
movq %rdi, -0x438(%rbp)
... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao_classe(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_NATIVO... | void exportacao_classe(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EXOTICO> av... | pushq %rbp
movq %rsp, %rbp
subq $0x980, %rsp # imm = 0x980
movq %r9, -0x970(%rbp)
movq %r8, -0x968(%rbp)
movq %rcx, -0x960(%rbp)
movq %rdx, -0x958(%rbp)
movq %rsi, -0x950(%rbp)
movq %rdi, -0x948(%rbp)
movq 0x28(%rbp), %rax
movq %rax, -0x940(%rbp)
movq 0x20(%rbp), %rax
movq %rax, -0x938(%rbp)
movq 0x18(%rbp),... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
exportacao(std::map<int, ANFIBIO_NATIVO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_NATIVO>>>, std::map<int, ANFIBIO_EXOTICO, std::less<int>, std::allocator<std::pair<int const, ANFIBIO_EXOTICO>>>, std::map<int, MAMIFERO_NATIVO, std::less<int>, std::allocator<std::pair<int const, MAMIFERO_NATIVO>>>, st... | void exportacao(map <int, ANFIBIO_NATIVO> anfibios_nat, map <int, ANFIBIO_EXOTICO> anfibios_ex, map <int, MAMIFERO_NATIVO> mamiferos_nat, map <int, MAMIFERO_EXOTICO> mamiferos_ex, map <int, REPTIL_NATIVO> repteis_nat, map <int, REPTIL_EXOTICO> repteis_ex, map <int, AVE_NATIVO> aves_nat, map <int, AVE_EXOTICO> aves_ex, ... | pushq %rbp
movq %rsp, %rbp
subq $0x370, %rsp # imm = 0x370
movq %r9, -0x370(%rbp)
movq %r8, -0x368(%rbp)
movq %rcx, -0x360(%rbp)
movq %rdx, -0x358(%rbp)
movq %rsi, -0x350(%rbp)
movq %rdi, %rax
movq %rax, -0x348(%rbp)
movq 0x20(%rbp), %rdi
movq %rdi, -0x328(%rbp)
movq 0x18(%rbp), %r10
movq %r10, -0x340(%rbp)
... | nataly-enne[P]pet-fera/pet_fera_auxiliar.cpp |
cedit::Cedit::Cedit() | Cedit::Cedit():
currentIndex(0),
savedIndex(0),
entryLine(0),
key(0),
refreshDisplay(true),
refreshHeader(true),
isrunning(true),
filename(""),
showLineNumbers(false)
{
this->wheader = newwin(1, this->width, 0, 0);
this->wcontent = newwin(this->height, this->width, 1, 0);
this->content.emplace_back("");
t... | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x50(%rbp)
callq 0x9060
movq -0x40(%rbp), %rdi
addq $0x18, %rdi
callq 0x9080
movq -0x40(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x48(%rbp)
callq 0x90a0
movq -0x40(%rbp), %rax
movq ... | JD297[P]cedit/src/cedit.cpp |
cedit::Cedit::reset() | void Cedit::reset()
{
this->content.clear();
this->content.emplace_back("");
this->contentIt = this->content.begin();
this->currentIndex = 0;
this->savedIndex = 0;
this->entryLine = 0;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
callq 0x9250
movq -0x18(%rbp), %rdi
leaq 0x95e5(%rip), %rsi # 0xe279
callq 0x9170
movq -0x18(%rbp), %rdi
callq 0x91c0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq -0x10(%rbp), %rcx
m... | JD297[P]cedit/src/cedit.cpp |
cedit::Cedit::run() | void Cedit::run()
{
while(this->isrunning)
{
if(this->refreshDisplay)
this->display();
else
this->display_current_line();
this->refreshDisplay = true;
this->key = wgetch(this->wcontent);
switch(this->key)
{
case 19:
this->event_save();
break;
case 15:
this->event_open();
break... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
testb $0x1, 0x6e(%rax)
je 0x4f00
movq -0x10(%rbp), %rax
testb $0x1, 0x6c(%rax)
je 0x4d17
movq -0x10(%rbp), %rdi
callq 0x4f10
jmp 0x4d20
movq -0x10(%rbp), %rdi
callq 0x5260
movq -0x10(%rb... | JD297[P]cedit/src/cedit.cpp |
cedit::Cedit::display() | void Cedit::display()
{
this->display_header();
this->display_content();
wbkgd(this->menu.window, A_REVERSE);
wmove(this->menu.window, 0, 0);
for(auto it = this->session.begin(); it != session.end(); it++) {
std::string end = this->filename == it->first ? "* " : " ";
std::string sessionItem = "[" + std::to... | pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp # imm = 0x140
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x8730
movq -0x110(%rbp), %rdi
callq 0x88d0
movq -0x110(%rbp), %rax
movq 0xb0(%rax), %rdi
movl $0x40000, %esi # imm = 0x40000
callq 0x46d0
movq -0x110(%rbp), %rax
movq... | JD297[P]cedit/src/cedit.cpp |
cedit::Cedit::display_current_line() | void Cedit::display_current_line()
{
bool isLastline = this->contentIt != std::prev(this->content.end()) &&
this->contentIt == std::prev(this->displayLastIt()) &&
this->contentIt->at(this->contentIt->length() - 1) == '\n';
if(isLastline)
{
this->contentIt->pop_back();
}
this->cursorY = distance(t... | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x68(%rbp)
movq %rdi, %rax
addq $0x18, %rax
movq %rax, -0x60(%rbp)
callq 0x92c0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0x9280
movq -0x60(%rbp), %rdi
movq %rax, -0x18(%rbp)
leaq -0x18(%rbp), %... | JD297[P]cedit/src/cedit.cpp |
cedit::Cedit::event_save() | void Cedit::event_save()
{
if(this->filename.empty())
{
if(!this->menu.type(FILE_SAVE)) {
return;
}
this->filename = this->menu.content;
this->refreshHeader = true;
}
std::ofstream f(this->filename.c_str());
auto itEnd = std::prev(this->content.end());
if(!itEnd->empty())
{
itEnd->append("\n");... | pushq %rbp
movq %rsp, %rbp
subq $0x3d0, %rsp # imm = 0x3D0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x3a0(%rbp)
addq $0x70, %rdi
callq 0x46c0
testb $0x1, %al
jne 0x5749
jmp 0x579c
movq -0x3a0(%rbp), %rdi
addq $0xb0, %rdi
leaq 0x88a6(%rip), %rsi # 0xe004
leaq 0x8b14(%rip), %rdx # 0xe2... | JD297[P]cedit/src/cedit.cpp |
cedit::Cedit::event_open() | void Cedit::event_open()
{
if(!this->menu.type(FILE_OPEN)) {
this->refreshDisplay = false;
return;
}
this->refreshHeader = true;
this->event_load(this->menu.content.c_str());
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
addq $0xb0, %rdi
leaq 0x83d5(%rip), %rsi # 0xe107
leaq 0x8540(%rip), %rdx # 0xe279
callq 0xd910
testb $0x1, %al
jne 0x5d4c
movq -0x10(%rbp), %rax
movb $0x0, 0x6c(%rax)
jmp 0x5d70
movq -0x10(%rbp), %r... | JD297[P]cedit/src/cedit.cpp |
cedit::Cedit::event_backspace() | void Cedit::event_backspace()
{
// If at beginning of line and current line is not the first line
if(this->currentIndex == 0 && this->contentIt != this->content.begin())
{
this->scrollup();
// When the line has no content with exception of "\n"
if(std::prev(this->contentIt)->length() != 1)
{
this->conten... | pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp # imm = 0x110
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
xorl %eax, %eax
cmpq $0x0, 0x50(%rcx)
movb %al, -0xc9(%rbp)
jne 0x5ddd
movq -0xd8(%rbp), %rdi
movq %rdi, %rax
addq $0x18, %rax
movq %rax, -0xe0(%rbp)
callq 0x91c0
movq -0xe0(%rbp), %r... | JD297[P]cedit/src/cedit.cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.