flat assembler
Message board for the users of flat assembler.

Index > DOS > Using Timer ( Urgent!!! )

Author
Thread Post new topic Reply to topic
diegocn



Joined: 17 Nov 2004
Posts: 7
diegocn 17 Nov 2004, 20:26
Hi, sorry for my poor english Rolling Eyes

I'am creating an simple multtask OS, I need a way to call a user interrupt
each x milisegunds or microsegunds. Can I resolve this?

I have to redirect the timer IRQ to a INT ???
Please help-me with a simple code

Very thanks Smile
Post 17 Nov 2004, 20:26
View user's profile Send private message Reply with quote
ASHLEY4



Joined: 28 Apr 2004
Posts: 376
Location: UK
ASHLEY4 17 Nov 2004, 21:13
Go here: http://512.decard.net/entries/
and get "nanoos2.zip" , it is a multitasking demo that is only 512bytes and fits on boot sector of floppy, with asm code.

\\\\||////
(@@)
ASHLEY4.

Batteries not included, Some assembly required.
Post 17 Nov 2004, 21:13
View user's profile Send private message Reply with quote
diegocn



Joined: 17 Nov 2004
Posts: 7
diegocn 17 Nov 2004, 21:21
Ok but the source codes are dificult to understand and generaly uncommented =( Have the http://www.menuetos.org/ too but is complicated
to understand.
But i try nanoos2.zip...

Very thaks...
Post 17 Nov 2004, 21:21
View user's profile Send private message Reply with quote
diegocn



Joined: 17 Nov 2004
Posts: 7
diegocn 18 Nov 2004, 00:50
No, I dont understand =(
Plase sendme a simple example...
An simple example, each x milisegunds, the program print the
leter (x) in the screen...

Gratefull for attencion,
Diego
Post 18 Nov 2004, 00:50
View user's profile Send private message Reply with quote
diegocn



Joined: 17 Nov 2004
Posts: 7
diegocn 18 Nov 2004, 02:09
Yesss, I tried to read the source of nanoos.asm and I know...
Very thanks friend.
But I need one more information, in the nanoOS the 18.2/segund
is the timer default. But I creating an real system and need more
than this. I have to modify the PIT ( Programmable Interval Timer ) ok?
But can I chance the PIT inteval?
I know that the ports is 40h and 43h... 40h is the address of timer
and the 43h is the address of Mode control register.

Very thankssssssss =D
Post 18 Nov 2004, 02:09
View user's profile Send private message Reply with quote
ASHLEY4



Joined: 28 Apr 2004
Posts: 376
Location: UK
ASHLEY4 18 Nov 2004, 16:44
Try these links:
www.contactor.se/~daniel/links/Pctim003.txt
http://members.tripod.com/~ladsoft/

\\\\||////
(@@)
ASHLEY4.

Batteries not included, Some assembly required.
Post 18 Nov 2004, 16:44
View user's profile Send private message Reply with quote
diegocn



Joined: 17 Nov 2004
Posts: 7
diegocn 18 Nov 2004, 20:23
I programmed and dont function =(((((((
Very thanks for your help I really need

The links dont have effect, its for DOS, and my operating system
dont run in the DOS, is a pure system with loader...

See the code please:

TIMER_IRQN equ (Cool

mov ax, function_timer
mov [0:TIMER_IRQN*4], ax
mov ax, cs
mov [0:TIMER_IRQN*4+2], ax

function_timer:

; code that is executed each 18.2s

jmp $-2

------------------------------------------------
this code not have effects =(((
What's ocorred?

Diego
Post 18 Nov 2004, 20:23
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.