; This is an Educational Program
entrystart include'win32a.inc' structPNT xdd? ydd?
qdd? ends ; This is the data section:
;mem dd 1 dup(0)
section'.text'codereadableexecutable start: ; Your program begins here
moveax, [my_PNT] ; Output -> 2
moveax, [my_PNT + 1] ; Output -> 3000000
moveax, [my_PNT + 2] ; Output -> 30000
moveax, [my_PNT + 3] ; Output -> 300
moveax, [my_PNT + 4] ; Output -> 3
;call print_eax ; Printing the number in hexa format in the console. This comes from the fine training.inc
; Exit the process:
call [ExitProcess] include'C:\Users\MrNoLife\Desktop\ASM resources\x86-asm-foundations\#asm_prog_ex-master\include\training.inc'
Look at the code that begins after the start label. In the first line I move the thing number that is in address my_PNT in eax (the number is my_PNT.x which is 2) now after that I move from the base address of my_PNT to the next byte I get this strange result "3000000". Why is this happening ? Can someone explain me ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum