-1
; Nama
; NIM
; Matkul
; Tugas 1

.386
.model flat,stdcall
.stack 4096
ExitProcess proto,dwExitCode:dword

.data

sum DWORD ?

.code
main proc
    mov eax, 6
    add eax, 3
    sub seax, 4
    imul eax, 8

    invoke ExitProcess, 0

main endp
end main

enter image description here

The windows below pops up whenever I try to debug the code, I've changed the debug to x86

genpfault
  • 51,148
  • 11
  • 85
  • 139
  • Did you build it? Is that the name and location of the executable? – Jester Aug 29 '23 at 14:44
  • How do you build your program? How do you try to "debug" it? – Some programmer dude Aug 29 '23 at 14:46
  • Have you actually used an assembler to create an executable? – Pepijn Kramer Aug 29 '23 at 14:51
  • 2
    Any chance you added an assembly file to a C/C++ project but didn't add the MASM target doing something like right mouse click the project name (in the solutions explorer on the left) to bring up the menu then select `Build Dependencies` then `Build Customizations` and mark the MASM target? Your issue sounds like the ASM file was never assembled at all and thus no executable generated. – Michael Petch Aug 29 '23 at 17:49
  • 1
    If so, then perhaps a duplicate of [Assembly programming - WinAsm vs Visual Studio 2017](https://stackoverflow.com/q/52796300) if that's still up to date for VS2022 (@MichaelPetch) – Peter Cordes Aug 29 '23 at 18:28

0 Answers0