The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: crazyhorse on December 13, 2011, 06:12:38 AM

Title: delete
Post by: crazyhorse on December 13, 2011, 06:12:38 AM
please delete this posting :(
Title: Re: Hello...Need help with my two .asm files :(
Post by: hutch-- on December 13, 2011, 06:45:17 AM
crazyhorse,

Will you make a point of posting 16 bit code in the 16 bit forum, I am getting tired of repeatedly moving it there.
Title: Re: Hello...Need help with my two .asm files :(
Post by: jj2007 on December 13, 2011, 07:53:33 AM
- Get MasmBasic (http://www.masm32.com/board/index.php?topic=12460), extract to the root of your Masm32 drive, "use folder names" on
- extract the attachment, "use folder names" on
- drag \masm32\RichMasm\Dracula.asc over RichMasm.exe
- you will see a slightly modified version of your code - see in particular lines 600ff
- hit F6
You should see
Let's try:
Received: [\masm32\MasmBasic\test.txt ] (the blank is Ascii 0)
There was an Error in Creating.


Now try to solve this one...
Quote   ;;;;;;;;;;;;;;;;;;Create Output file;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
   mov ah, 3Ch            ; 3C to create a file
   sub  cx, cx
   mov dx, OFFSET OutputFileName
;   mov dx, Chr$("\masm32\MasmBasic\test.txt")   ; for testing
;   mov dx, Chr$("NewFile.txt")   ; ERROR... why?
   int 21h
   jc CreateError