Author Topic: Speed Poke ?  (Read 1490 times)

0 Members and 1 Guest are viewing this topic.

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 660
  • Country: de
  • Schneider CPC464 - what else ?
    • Awards
Speed Poke ?
« on: 22:40, 12 January 17 »
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 ...
« Last Edit: 22:24, 13 January 17 by SRS »
like
0
No reactions

Offline HAL 6128

  • 6128 Plus
  • ******
  • Posts: 567
  • Country: de
    • index.php?action=treasury
    • Awards
Re: Speed Poke ?
« Reply #1 on: 08:19, 13 January 17 »
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.
like
0
No reactions
...proudly supported Schnapps Demo, Pentomino and NQ-Music-Disc with GFX

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.939
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
    • Awards
Re: Speed Poke ?
« Reply #2 on: 10:16, 13 January 17 »
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.
like
0
No reactions
* 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

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 660
  • Country: de
  • Schneider CPC464 - what else ?
    • Awards
Re: Speed Poke ?
« Reply #3 on: 00:57, 05 November 21 »
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


like
1
Members reacted like:
Urusergi,

Offline eto

  • Supporter
  • 6128 Plus
  • *
  • Posts: 574
  • Country: de
    • Awards
Re: Speed Poke ?
« Reply #4 on: 01:38, 05 November 21 »
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 ;-)
like
0
No reactions