Question: figure out what is happening: write a code in C which produces this outcome in gdb: 0x108a = 4234 0x20=32 also what is imu1? I
figure out what is happening:
write a code in C which produces this outcome in gdb:
0x108a = 4234
0x20=32
also what is imu1?

I have
int main() {
int x, y;
x=4234;
y=32;
x=x%y;
y=x-y;
and i get:

which is not correct!
5 00000000000005fa : //location/memory 5fa: 55 push Srbp 5fb: 48 89 e5 mov Irsp, Srbp // local var. 5fe: c7 45 fo 8a 10 00 00 movl $0x108a, -Ox10 (#rbp) 605: c7 45 f4 20 00 00 00 movl $0x20,-Oxc(#rbp) 60c: 8b 45 fo mov -Ox10 (#rbp), feax 60f: Of af 45 f4 imul -Oxc (Srbp), seax 613: 89 45 f8 mov Seax, -Ox8 (Srbp) 616: 8b45 FO mov -Ox10 (#rbp), feax 619: cltd 6la: f7 7d f4 idivl -Oxc (Srbp) 6ld: 89 55 fc mov fedx, -0x4 (Srbp) 620: b8 00 00 00 00 mov $0x0, feax 625: 5d pop Srbp 626: c3 reta 627: 66 Of if 84 00 00 00 nopw Ox0 (frax, frax,1) /o op 62e: 00 00 99 mov Dump of assembler code for function main: Ox00005555555545fa : push Srbp Ox00005555555545fb : frsp, trbp Ox00005555555545fe : movl $0x108a, -Ox8 (#rbp) Ox0000555555554605 : movl $0x20,-Ox4 (&rbp) Ox000055555555460c : mov -Ox8 (#rbp), Seax Ox000055555555460f : cltd Ox0000555555554610 : idivl -Ox4 (Srbp) Ox0000555555554613 : mov Sedx, -Ox8 (#rbp) Ox0000555555554616 : mov -Ox8 (Srbp), seax Ox0000555555554619 : add feax, -0x4 (Srbp) Ox000055555555461c : mov $0x0, feax Ox0000555555554621 : pop Srbp Ox0000555555554622 : reta End of assembler dump. 5 00000000000005fa : //location/memory 5fa: 55 push Srbp 5fb: 48 89 e5 mov Irsp, Srbp // local var. 5fe: c7 45 fo 8a 10 00 00 movl $0x108a, -Ox10 (#rbp) 605: c7 45 f4 20 00 00 00 movl $0x20,-Oxc(#rbp) 60c: 8b 45 fo mov -Ox10 (#rbp), feax 60f: Of af 45 f4 imul -Oxc (Srbp), seax 613: 89 45 f8 mov Seax, -Ox8 (Srbp) 616: 8b45 FO mov -Ox10 (#rbp), feax 619: cltd 6la: f7 7d f4 idivl -Oxc (Srbp) 6ld: 89 55 fc mov fedx, -0x4 (Srbp) 620: b8 00 00 00 00 mov $0x0, feax 625: 5d pop Srbp 626: c3 reta 627: 66 Of if 84 00 00 00 nopw Ox0 (frax, frax,1) /o op 62e: 00 00 99 mov Dump of assembler code for function main: Ox00005555555545fa : push Srbp Ox00005555555545fb : frsp, trbp Ox00005555555545fe : movl $0x108a, -Ox8 (#rbp) Ox0000555555554605 : movl $0x20,-Ox4 (&rbp) Ox000055555555460c : mov -Ox8 (#rbp), Seax Ox000055555555460f : cltd Ox0000555555554610 : idivl -Ox4 (Srbp) Ox0000555555554613 : mov Sedx, -Ox8 (#rbp) Ox0000555555554616 : mov -Ox8 (Srbp), seax Ox0000555555554619 : add feax, -0x4 (Srbp) Ox000055555555461c : mov $0x0, feax Ox0000555555554621 : pop Srbp Ox0000555555554622 : reta End of assembler dump