• Please review our updated Terms and Rules here

8-bit ASCII animator in ASM

per

Veteran Member
Joined
Jan 21, 2008
Messages
3,052
Location
Western Norway
I just made this program, and this will be my second lardger ASM program writted for the IBM PC. This program is a ASCII/text animation viewer with support for up to 32 frames. It has a framerate of 18.2 fps (However, the speed might appear a little unstable on some Win. XP machines).

controlls:
+ = speed up animation
- = slow down animation
Enter = reset fps
anything else registered by BIOS int 16h = terminate program.

I got the idea for this program by another program that used more RAM than my XT had.

Attachements:
Animator.zip = My program I just told about.
textanim.zip = The program I got the idea from.
 

Attachments

  • Animator.zip
    8.8 KB · Views: 1
  • textanim.zip
    84.5 KB · Views: 1
Very nice! But I noticed something:

"Why no more than 32 frames?: Because of the limitations for a *.COM file. A *.COM file can't be larger than 64Kb, and the data segement have to be the same as the code segement."

Methinks you need to research int 21h/48: http://www.ctyme.com/intr/rb-2934.htm

Just ask DOS for as many memory blocks as you need. A .COM file is limited to 64K of code and data in a single 64K segment but that doesn't mean you can't use additional segments for additional data...
 
Very nice! But I noticed something:



Methinks you need to research int 21h/48: http://www.ctyme.com/intr/rb-2934.htm

Just ask DOS for as many memory blocks as you need. A .COM file is limited to 64K of code and data in a single 64K segment but that doesn't mean you can't use additional segments for additional data...

I´ve just started coding in ASM, and this is first time I use DOS calls. All DOS calls I have used was described in the book "The IBM PC from the inside-out" (which is the only reference I got for DOS calls), however, that book does only describe the most commonly used ones, and referes to the PC-DOS TechRef for more information. (I don´t have the TechRef, and I would be happy if somebody scanned the PC-DOS 2.1 version).
 
wow some start!! very impressive

This is really the third program I have made in x86 ASM.

The first was the "Matrix simulator" which I wrote another thread about here.
The second one just cleared the screen and reset the cursor before doing an Int 19h (I really needed that to get the CD-ROM on my 486 to work)
This is the third one.

I made a small program In-between the 2nd and the 3rd one in Z80 ASM to do some archive/unarchive stuff on my TI 84 pluss SE calc.

Not set up for scanning, but I have a hard copy I'll send ya for shipping. PM please.

--T

PM sendt.
 
Last edited:
Very nice! But I noticed something:



Methinks you need to research int 21h/48: http://www.ctyme.com/intr/rb-2934.htm

Just ask DOS for as many memory blocks as you need. A .COM file is limited to 64K of code and data in a single 64K segment but that doesn't mean you can't use additional segments for additional data...

can i use this interrupt call to allocate a block in video RAM and maybe some other interrupt to move data from an arbitrary location directly into it??
 
Great job on only your third ASM program!

When I was learning 8086/8088 Assembler (many years ago, and most of it forgotten now), one book I found to be the most informative was "Advanced MS-DOS" by Ray Duncan. If you can find a copy of that book, grab it.
 
Back
Top