mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-15 08:32:22 -07:00
18 lines
500 B
NASM
18 lines
500 B
NASM
; Copyright (c) Epic Games Tools
|
|
; Licensed under the MIT license (https://opensource.org/license/mit/)
|
|
; $ c:\devel\projects\bin\win32\nasm src\pe\dos_program.asm -fbin -o dos_program.bin
|
|
|
|
BITS 16
|
|
|
|
SEGMENT CODE
|
|
push cs ; copy psp segment address to ds
|
|
pop ds
|
|
mov dx, msg ; set print string
|
|
mov ah, 9h ; print to stdout
|
|
int 21h
|
|
mov ax, 0x4c01 ; terminate with return code 1 in al
|
|
int 0x21
|
|
|
|
msg: DB "This program cannot be run in DOS mode.$",0
|
|
ALIGN 8, DB
|