A little problem...easy to solve... 
Author Message
 A little problem...easy to solve...

Could someone please post the smallest possible code to print to the
scrren, not using MS-DOS interrupts. Either throught the bios or a
little longer but straight into memory.

P.S Is there a interupts to give the memory location of the current
cursor position not the scrren location, eg 0B83Fh

Thanks

--
Setec



Thu, 30 Sep 1999 03:00:00 GMT  
 A little problem...easy to solve...

                mov     ax,0b800h
                xor     di,di
                mov     es,ax
                mov     ax,0150h        ; ah=attribute, al=char

_this_is_it:    mov     [es:di],ax

Therefore, at the address b800:0000 (aka es:di), the 2 bytes
contained in ax are written to the memory location where the
textmode buffer is mapped to.

--



Fri, 01 Oct 1999 03:00:00 GMT  
 A little problem...easy to solve...

Quote:

> x-no-archive: yes


> > Could someone please post the smallest possible code to print to the
> > scrren, not using MS-DOS interrupts. Either throught the bios or a
> > little longer but straight into memory.

> > P.S Is there a interupts to give the memory location of the current
> > cursor position not the scrren location, eg 0B83Fh

> > Thanks

> > Setec

> SWAG, SCREEN: 0069.SWG has a Pascal routine that does it in 53 bytes.

     Very good!!! This is a newsgroup about assembly and the young
   programmer want's the anwser in an assembly code and tell im to use a
   Pascal routine... Very good indeed... Why don't make the code in Java?

Quote:
> Best Regards,

> Michael R. Monett

      Dr. Alex


Sat, 02 Oct 1999 03:00:00 GMT  
 A little problem...easy to solve...

SE>Could someone please post the smallest possible code to print to the
SE>scrren, not using MS-DOS interrupts. Either throught the bios or a
SE>little longer but straight into memory.

Smallest isn't always best.

SE>P.S Is there a interupts to give the memory location of the current
SE>cursor position not the scrren location, eg 0B83Fh

You can CONVERT an xy coordinate to a location in memory with some
shifts and some addition.

BTW, look through PORTS.LST (Comes with Ralf Brown's Interrupt List)
You can control and read the cursor position with ports.



Sun, 03 Oct 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. A little problem...easy to solve...

2. Another easy problem to solve

3. easy problem to solve with exec

4. Little Smalltalk <- Big Problems (solved)

5. Easy print of a browse queue : SOLVED

6. A little easier navigation at the VRMLworks

7. Easy little string substitution

8. 1 little, 2 little, 3 little endians...

9. 32bit problem - one problem solved & another found

10. REXX DLL problems solved (was Re: Problems getting C subcommand to work)

11. VRML EAI problems: Java3d solves many portabilty problems of VRML

12. Problems solving a problem with lists

 

 
Powered by phpBB® Forum Software