flat assembler
Message board for the users of flat assembler.

flat assembler > DOS > [solved] Line Drawing Code Problem

Author
Thread Post new topic Reply to topic
gerie



Joined: 11 May 2012
Posts: 2
I can't figure out why this program hangs? how to fix it?


Description:
Download
Filename: GRAPH.ASM
Filesize: 5.18 KB
Downloaded: 16 Time(s)

Post 08 Nov 2018, 19:02
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16097
Location: Transylbonia
Two things I noticed.
  1. Your LINE label is immediately followed by data definitions which the CPU will try to execute. Ideally your data should be outside of any place where instructions are expected.
  2. Returning from the program with RET might be okay, but usually something like INT 0x20 is preferred and more robust.
Post 08 Nov 2018, 19:39
View user's profile Send private message Visit poster's website Reply with quote
gerie



Joined: 11 May 2012
Posts: 2
Got it working now! thanks!


Description:
Download
Filename: GRAPH.ASM
Filesize: 5.59 KB
Downloaded: 14 Time(s)

Post 09 Nov 2018, 00:37
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.