flat assembler
Message board for the users of flat assembler.

Index > DOS > my first successful asm project-show regs

Author
Thread Post new topic Reply to topic
kty11



Joined: 30 Dec 2012
Posts: 21
Location: south korea
kty11 02 Jan 2013, 04:22
it prints current register status
I fail to make dotting program
so I tried easier program, show registers.
and it works!
congrats!
Very Happy Very Happy Smile Smile


Description:
Download
Filename: 20120102 show regs.zip
Filesize: 1.41 KB
Downloaded: 546 Time(s)


_________________
since 1990 November 4th
Post 02 Jan 2013, 04:22
View user's profile Send private message Reply with quote
HaHaAnonymous



Joined: 02 Dec 2012
Posts: 1178
Location: Unknown
HaHaAnonymous 02 Jan 2013, 13:47
[ Post removed by author. ]


Last edited by HaHaAnonymous on 28 Feb 2015, 22:07; edited 2 times in total
Post 02 Jan 2013, 13:47
View user's profile Send private message Reply with quote
SeproMan



Joined: 11 Oct 2009
Posts: 70
Location: Belgium
SeproMan 06 Jan 2013, 16:55
kty11,

I hate to be the bringer of bad news but it is not because your program didn't crash that it performed successfully!
a. The routines "show_ah" and "show_al" should call "show_al_high_4bit" first.
b. The instruction "call read_pusha_regs" does not deliver the correct register contents! Register DI will contain the returnaddress of the call!!!!
c. Do you think that segment registers can not be MOVed to the AX register?

I realize that these are your first steps in assembler. Please try to keep the complete source in 1 text file. At least while you are learning to program and are hoping to get meaningful feedback from others. (I gave up on your dotting program on account of this!)

_________________
Real Address Mode.
Post 06 Jan 2013, 16:55
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1389
Location: Piraeus, Greece
Picnic 06 Jan 2013, 17:25
Hi kty11,

Here you can find a similar attempt.

Display 16-bit registers
Post 06 Jan 2013, 17:25
View user's profile Send private message Visit poster's website Reply with quote
kty11



Joined: 30 Dec 2012
Posts: 21
Location: south korea
kty11 07 Jan 2013, 03:35
SeproMan wrote:
kty11,

I hate to be the bringer of bad news but it is not because your program didn't crash that it performed successfully!
a. The routines "show_ah" and "show_al" should call "show_al_high_4bit" first.
b. The instruction "call read_pusha_regs" does not deliver the correct register contents! Register DI will contain the returnaddress of the call!!!!
c. Do you think that segment registers can not be MOVed to the AX register?

I realize that these are your first steps in assembler. Please try to keep the complete source in 1 text file. At least while you are learning to program and are hoping to get meaningful feedback from others. (I gave up on your dotting program on account of this!)


thanks a lot!



one thing I wonder: do I must keep source in 1 text file?


SeproMan wrote:
I hate to be the bringer of bad news but it is not because your program didn't crash that it performed successfully!

I like this comment Very Happy

_________________
since 1990 November 4th
Post 07 Jan 2013, 03:35
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 07 Jan 2013, 05:11
kty11, It is better to keep the source in one file, when you write it with learning purposes. You are very beginner and this should make the learning easier.
Also try to keep the source as simple as possible. Write detailed comments (for yourself). Edit the source, even if the program works and try to make it as readable as possible. Try to create more than one solution of the problem.
Post 07 Jan 2013, 05:11
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1622
Location: Toronto, Canada
AsmGuru62 07 Jan 2013, 11:26
I always keep few sources in a directory for the project.
This is how my IDE works.
It is time proven to be effective.
Post 07 Jan 2013, 11:26
View user's profile Send private message Send e-mail 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.