flat assembler
Message board for the users of flat assembler.

Index > DOS > [solved] Line Drawing Code Problem

Author
Thread Post new topic Reply to topic
gerie



Joined: 11 May 2012
Posts: 2
gerie 08 Nov 2018, 19:02
I can't figure out why this program hangs? how to fix it?


Description:
Download
Filename: GRAPH.ASM
Filesize: 5.18 KB
Downloaded: 1012 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: 20451
Location: In your JS exploiting you and your system
revolution 08 Nov 2018, 19:39
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
gerie 09 Nov 2018, 00:37
Got it working now! thanks!


Description:
Download
Filename: GRAPH.ASM
Filesize: 5.59 KB
Downloaded: 1026 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.