Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly Language > Re: Make a TSR
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 9 Topic 5006 of 5160
Post > Topic >>

Re: Make a TSR

by "Benjamin David Lunt" <zfysz@[EMAIL PROTECTED] > May 11, 2008 at 12:18 PM

"Rod Pemberton" <do_not_have@[EMAIL PROTECTED]
> wrote in message 
news:g079v9$uib$1@[EMAIL PROTECTED]
>
> TSR under XP?.  DOS under XP doesn't work quite correctly.
>
> E.g., one issue with XP is that it doesn't update BIOS variables unless
a
> BIOS call is made:
>
http://groups.google.com/group/comp.os.msdos.djgpp/msg/67916cf4c1c73b7e?hl=en
>
http://groups.google.com/group/comp.os.msdos.djgpp/msg/30ac39382eb3560e?hl=en
>

Hi Rod,

I threw together list little code snippet to see for myself.  It seems
to update the timer tick just fine.  It could be that WinXP emulates
the write to video memory by calling the BIOS print char service call.
I have WinXP SP2 [version 5.1.2600 is displayed at DOS prompt]

; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
; assemble using NBASM (http://www.frontiernet.net/~fys/newbasic.htm)
 .model tiny
 .code
 .386

           org 100h

           xor  ax,ax
           mov  es,ax
           mov  si,046Ch


; depending on you CPU speed, adjust this value.  It
; is simply a delay to end the program so we don't call
; a BIOS routine to check for keypress or something.
           mov  ecx,400000
main_loop: mov  ax,es:[si]
           call prthex
           dec  ecx
           jnz  main_loop

           .exit

prthex     proc near uses ax cx dx es di

           mov  cx,0B800h
           mov  es,cx
           xor  di,di

           mov  cx,04
PLoop:     rol  ax,04          ;
           push ax             ;
           and  al,0Fh         ;
           daa                 ;
           add  al,0F0h        ;
           adc  al,40h         ;

           mov  ah,07h
           stosw

           pop  ax             ;
           loop PLoop          ;
           ret
prthex     endp

 .end
; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 




 9 Posts in Topic:
Make a TSR
"almas" <alm  2008-05-11 19:32:23 
Re: Make a TSR
"Rod Pemberton"  2008-05-11 13:24:02 
Re: Make a TSR
"Benjamin David Lunt  2008-05-11 12:18:11 
Re: Make a TSR
"Rod Pemberton"  2008-05-14 15:39:18 
Re: Make a TSR
"Benjamin David Lunt  2008-05-15 08:23:48 
Re: Make a TSR
Viel Spass <andy77017@  2008-05-17 06:07:01 
Re: Make a TSR
Frank Kotler <fbkotler  2008-05-17 19:47:38 
Re: Make a TSR
"Rod Pemberton"  2008-05-17 17:29:46 
Re: Make a TSR
Evenbit <nbaker2328@[E  2008-05-17 13:11:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 23:48:38 CDT 2008.