flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
ManOfSteel 14 Oct 2008, 07:21
It's not working because it's not fasm code (tasm?).
remove .MODEL SMALL, .DATA, .STACK, .CODE, .STARTUP, END move all your data to the end use brackets for memory locations (e.g. 'mov [var1],al' instead of 'mov var1,al') don't forget the 'org 100h' add some exit code at the end and why not use 'mov' instead of 'lea'? N.B. This code converts only one digit. |
|||
![]() |
|
DOS386 15 Oct 2008, 23:48
ManOfSteel wrote:
All right ![]() Exit code: Code: ret ; COM only Code: mov ax,$4C00 int $21 ; COM , RM EXE , DPMI EXE Not required but nice to have at beginning: Code: ; Compile with FASM format binary as "COM" About converting dec to hex, you need 2 things: - Parse DEC input - Output as HEX Check some of my examples ![]() _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.