Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to index page
Thread view  Board view
cpcdos(R)

Homepage E-mail

FRANCE [Jura],
13.02.2015, 08:02
 

[Freebasic] Screen function block ISR (Developers)

Hello all :-)

I have a problem with Screen or Screenres function on freebasic 1.01

I launch my program with standard screen of FreeDos, the ISR timer work perfectly, but if SCREEN or SCREENRES is called, the ISR runtime is blocked .....

for resolve my problem, I must re-create another ISR, but this is not that I want ...

A solution ? Can you help me ?
Thank :-)

PS: Exuse me for my English level, I'm French a student :-|

---
FAVIER Sébastien
http://cpcdos.fr.nf/

ps: Excuse my for my English level, I'm a French student

marcov(R)

13.02.2015, 10:53

@ cpcdos
 

[Freebasic] Screen function block ISR

> I have a problem with Screen or Screenres function on freebasic 1.01
>
> I launch my program with standard screen of FreeDos, the ISR timer work
> perfectly, but if SCREEN or SCREENRES is called, the ISR runtime is blocked

Sounds like FB doesn't properly chain the ISR by jumping to the already registered routine at the end of the ISR. File a bug?

Laaca(R)

Homepage

Czech republic,
13.02.2015, 16:33

@ marcov
 

[Freebasic] Screen function block ISR

> Sounds like FB doesn't properly chain the ISR by jumping to the already
> registered routine at the end of the ISR. File a bug?

Yes but anyway - timer ISR setting before videoengine setting seems to be a little bit risky for me. I would prefer to setup whole graphics first and timer then.

---
DOS-u-akbar!

cpcdos(R)

Homepage E-mail

FRANCE [Jura],
14.02.2015, 13:47

@ Laaca
 

[Freebasic] Screen function block ISR

> > Sounds like FB doesn't properly chain the ISR by jumping to the already
> > registered routine at the end of the ISR. File a bug?
>
> Yes but anyway - timer ISR setting before videoengine setting seems to be a
> little bit risky for me. I would prefer to setup whole graphics first and
> timer then.

Thank you for your replys

I can't setup graphics before timer, because, the user of my program (in execution) can change screen resolution manually :/

This is my FreeBaic code :
http://www.freebasic.net/forum/viewtopic.php?f=4&t=23297

I use fb_isr_set, fb_isr_reset, fb_isr_get OF FREEBASIC
I think that Screen function is "relied" with this.
If I code my ISR timer with Djgpp in C, and compile in a .A library, and compile with my program who use Screen function, you think that this can work ?
I can test this tomorrow

Best regards

---
FAVIER Sébastien
http://cpcdos.fr.nf/

ps: Excuse my for my English level, I'm a French student

cpcdos(R)

Homepage E-mail

FRANCE [Jura],
17.02.2015, 13:02

@ marcov
 

[Freebasic] Screen function block ISR

> > I have a problem with Screen or Screenres function on freebasic 1.01
> >
> > I launch my program with standard screen of FreeDos, the ISR timer work
> > perfectly, but if SCREEN or SCREENRES is called, the ISR runtime is
> blocked
>
> Sounds like FB doesn't properly chain the ISR by jumping to the already
> registered routine at the end of the ISR. File a bug?


Hi,

I was written my ISR library in C and, compile this with GCC (.a), I have include this in my Freebasic program (C import) and this Work when I change my screen resolution :-D

Thank's you all

---
FAVIER Sébastien
http://cpcdos.fr.nf/

ps: Excuse my for my English level, I'm a French student

Back to index page
Thread view  Board view
15188 Postings in 1365 Threads, 250 registered users, 14 users online (0 registered, 14 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum