;[START]------------------------------------------------------------------- ; DOS Program Entry Point START: jmp main ;[DATA]-------------------------------------------------------------------- ; Local global TSR data goes here YourStack dd ? MyStack dd ? OldTck dd ? ;[NEWTCK]------------------------------------------------------------------ ; Our new timer handler, IRQ-0 (8) NewTck PROC cli ;disable interrupts mov word ptr CS:[YourStack][2],SS ;save interrupted stack address mov word ptr CS:[YourStack][0],SP mov SS,word ptr CS:[MyStack][2] ;set our own stack mov SP,word ptr CS:[MyStack][0] pusha ;push all registers mov AX,1001h ;VIDEO - set border color int 10h ;call VIDEO to change border popa ;pop all registers mov SS,word ptr CS:[YourStack][2] ;restore interrupted stack mov SP,word ptr CS:[YourStack][0] sti ;enable interrupts jmp CS:[OldTck] ;chain to previous handler NewTck ENDP ;[SNIP]-------------------------------------------------------------------- ; All code/data upto this point is kept resident in memory SNIP: ;[MAIN]-------------------------------------------------------------------- ; Actual start of program, jumped to from DOS entry point above. main PROC mov word ptr [MyStack][2],CS ;save our stack address mov word ptr [MyStack][0],offset START ;we'll use the PSP space mov AX,3508h ;DOS - get vector for INT-08h (IRQ-0) int 21h ;call DOS to get the address mov word ptr [OldTck][2],ES ;save segment mov word ptr [OldTck][0],BX ;save offset sub AH,10h ;DOS - set vector for INT-08h (IRQ-0) mov DX,offset NewTck ;DS:DX -> new handler routine int 21h ;call DOS to set the new address mov DX,offset SNIP ;all code upto SNIP is kept resident shr DX,04h ;convert to paragraphs inc DX ;plus one more to round up mov AX,3100h ;DOS - TSR program with code (0) int 21h ;call DOS to TSR program main ENDP PRG ENDS END START ;-------------------------------------------------------------------------- Cheers, Denis Boyles * OLX 2.1 TD * Hello, I am part number ||X||||X||X||X|| --- Maximus/2 3.01 * Origin: Frog Hollow Port Moody BC 604-469-0264/0284 (1:153/290) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4J00013Date: 04/14/97 From: JOSH AXTELL Time: 10:36pm \/To: ALL (Read 5 times) Subj: programming I recently aquired visual basic 5.0 beta. I do not know much about programming And I was hoping someone could help me. Please respond to AOSD@juno.com if you can. Thank you --- Maximus 3.01 * Origin: E. C. Unlimited (1:2608/27) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4K00000Date: 04/13/97 From: MARTIJN VAN DE STREEK Time: 09:21am \/To: PETER LOUWEN (Read 5 times) Subj: FS and GS registers Hi Peter, Long ago, on Sat 12 Apr 1997, Peter wrote to Tim: PL> Actually, they're a bit like ES: non-dedicated segment PL> registers. To be precise: ES = Extra Segment (never used it) FS \ just counting from E (you know the alphabet, don't you ? :) GS / (never used it either) Martijn --- * Origin: Main acticity - coding coders. (2:283/507.4) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4K00001Date: 04/14/97 From: CAREY BLOODWORTH Time: 09:12pm \/To: MODERATOR (Read 5 times) Subj: encoded messages M>I *think* 99% of the reader software can handle 200 lines before M>the message gets chopped off. Old SLMR had a limit of 150, but I M>don't see it used much anymore. SLMR and OLX-TD both have a limit of 150. Although SLMR isn't widely used, OLX-TD is. Also, I think some BBSs _might_ (can't verify it) have their own line limit and simply chop the rest off, where as others will split it into multiple messages. --- QScan/PCB v1.19b / 01-0162 * Origin: Jackalope Junction 501-785-5381 Ft Smith AR (1:3822/1) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: E4K00002Date: 04/14/97 From: BENJAMIN L MCGEE Time: 10:54pm \/To: IAN MOOTE (Read 5 times) Subj: FILE-ACCESS TUTORIAL. On 04-02-97 Ian Moote wrote to All... IM> Would anyone else do me the favour of proof-reading that IM> file-access tutorial? Sure. *Unable to locate Coffee -- Operator Halted! blm --- FLAME v1.1 * Origin: Purgatoire BBS, 719-846-0140, Trinidad, CO, V.34 (1:15/7)