rjwilldohisbest
Technical User
Hello
I have been to an online tutorial and wrote in what I saw there for a hello program. I'm using the windows Emu8086/8088 assembler.
Here is an example of the code:
.386P
Locals
jumps
.Model Flat, StdCall
mb_ok equ 0 ; value goes to 0
hWnd equ 0 ; Windows handle
lpText equ offset text ; Sets pointer to text
lpCaption equ offset caption ; Sets pointer to
; caption
; Declaration of API functions
extrn ExitProcess ROC ; Procedure to shut down
extrn MessageBoxA ROC ; Procedure to show
; message box
; Data begins here
.Data
text db "Windows 32 bit power!!, 13, 10
; First row of text with wordwrap
db "Reimport ini file to window.",0
; Second row of text, terminated with 0
caption db "Runs in the GUI Subsystem", 0
; Caption string, 0-terminated
; Code starts here
.Code
Main:
push mb_ok
push lpCaption
push lpText
push hWnd
call MessageBoxA
CALL ExitProcess
END MAIN
Heres what the reasons are for not compiling:
(2) Unknown command: .386P
or not enough parameters.
(3) Unknown command: Locals
or not enough parameters.
(4) Unknown command: jumps
or not enough parameters.
(6) Unknown command: .Model Flat, StdCall
or not enough parameters.
(15) Unknown command: extrn ExitProcess ROC
or not enough parameters.
(16) Unknown command: extrn MessageBoxA ROC
or not enough parameters.
(21) Unknown command: .Data
or not enough parameters.
(32) Unknown command: .Code
or not enough parameters.
(35) Not supported: PUSH 0 ; value goes to 0
(36) Not supported: PUSH offset caption ; Sets pointer to
(37) Not supported: PUSH offset text ; Sets pointer to text
(38) Not supported: PUSH 0 ; Windows handle
(39) Not supported: CALL MessageBoxA
(40) Not supported: CALL ExitProcess
If anyone knows what is happening please let me know.
Thanks for your time.
RJ
I have been to an online tutorial and wrote in what I saw there for a hello program. I'm using the windows Emu8086/8088 assembler.
Here is an example of the code:
.386P
Locals
jumps
.Model Flat, StdCall
mb_ok equ 0 ; value goes to 0
hWnd equ 0 ; Windows handle
lpText equ offset text ; Sets pointer to text
lpCaption equ offset caption ; Sets pointer to
; caption
; Declaration of API functions
extrn ExitProcess ROC ; Procedure to shut down
extrn MessageBoxA ROC ; Procedure to show
; message box
; Data begins here
.Data
text db "Windows 32 bit power!!, 13, 10
; First row of text with wordwrap
db "Reimport ini file to window.",0
; Second row of text, terminated with 0
caption db "Runs in the GUI Subsystem", 0
; Caption string, 0-terminated
; Code starts here
.Code
Main:
push mb_ok
push lpCaption
push lpText
push hWnd
call MessageBoxA
CALL ExitProcess
END MAIN
Heres what the reasons are for not compiling:
(2) Unknown command: .386P
or not enough parameters.
(3) Unknown command: Locals
or not enough parameters.
(4) Unknown command: jumps
or not enough parameters.
(6) Unknown command: .Model Flat, StdCall
or not enough parameters.
(15) Unknown command: extrn ExitProcess ROC
or not enough parameters.
(16) Unknown command: extrn MessageBoxA ROC
or not enough parameters.
(21) Unknown command: .Data
or not enough parameters.
(32) Unknown command: .Code
or not enough parameters.
(35) Not supported: PUSH 0 ; value goes to 0
(36) Not supported: PUSH offset caption ; Sets pointer to
(37) Not supported: PUSH offset text ; Sets pointer to text
(38) Not supported: PUSH 0 ; Windows handle
(39) Not supported: CALL MessageBoxA
(40) Not supported: CALL ExitProcess
If anyone knows what is happening please let me know.
Thanks for your time.
RJ