Speed Poke ?

Started by SRS, 22:40, 12 January 17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SRS

Hi,

I remember a "speed poke" which made calculating loops i.e. about 20% faster in BASIC, for the price of ... dunno -

no interrupts ?
No screen refresh ?

Can't find it but it was really usefull those days ...

HAL6128

Hi, there's an article in the Amstrad International Issue 1988/1 about tuning BASIC by deactivating interrupts. Just quickly saw the headline, but I didn't read it...., maybe.
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

AMSDOS

The two threads that spring to mind is my "16bit Poke in [whatever Language you prefer] ! :)", but a while ago I was asking about some routines to POKE a series of values and I got a set of RSX routines, one to handle bytes and the other for 16bit numbers which is here.

* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

SRS

I found it, I found it :)
Clearing up my place there was a hardcopy of the "3D-Apfelmaennchen" which uses it ...
It's "POKE &B939,&c9" for activating and "POKE &b939,&F3" for deactivating on CPC464
and "&B941" for 664/6128.
Also see: https://cpcrulez.fr/applications_graphic-3d-apfelmannchen-schneider_magazin.htm



eto

Interesting ....
Having a quick look at it, I would say it's deactivating the 300Hz interrupt. Keyboard press is no longer recognized and the timer doesn't count any more.


So this does not make the loop faster but frees up the resources usually consumed during interrupt. I tested it with a stop watch (as TIME didn't work anymore) and the program got about 10% faster.


Fine for such a calculation but might be problematic if you need user input ;-)

Powered by SMFPacks Menu Editor Mod