Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PAUSE not working (*solved*)
#3
(2020-12-29, 04:56 AM)patters Wrote: In my program PAUSE doesn't seem to work. Is that normal? I would find it useful to delay execution a bit while my program prints an error on screen when the result of an INPUT isn't compliant. I can't see any mention of PAUSE in the wiki. I mean I can use a FOR loop to count to 10,000 instead, but I thought the aim of Boriel BASIC is to be a faster superset of Sinclair BASIC so it's surprising this seems to be missing.

PAUSE is implemented and it's just a call to the ROM pause (which basically does what your sub does). Are you disabling the interruptions with DI or something?

I've just tested it and it works:
Code:
PAUSE 50
PRINT "HELLO"

Will wait for 50 frames and then print the message. Remember that pause can be cancelled by pressing a key Wink
Reply


Messages In This Thread
PAUSE not working (*solved*) - by patters - 2020-12-29, 04:56 AM
RE: PAUSE - by patters - 2020-12-29, 01:48 PM
RE: PAUSE - by boriel - 2020-12-29, 06:07 PM
RE: PAUSE - by patters - 2020-12-29, 06:11 PM
RE: PAUSE - by boriel - 2020-12-29, 06:20 PM
RE: PAUSE - by boriel - 2020-12-29, 06:37 PM
RE: PAUSE - by patters - 2020-12-29, 06:45 PM
RE: PAUSE - by boriel - 2020-12-29, 06:54 PM
RE: PAUSE - by patters - 2020-12-29, 07:08 PM
RE: PAUSE - by boriel - 2020-12-29, 08:18 PM
RE: PAUSE - by patters - 2020-12-29, 08:34 PM
RE: PAUSE - by boriel - 2020-12-29, 09:13 PM
RE: PAUSE - by patters - 2020-12-30, 12:52 AM
RE: PAUSE - by boriel - 2021-01-02, 03:20 PM
RE: PAUSE not working (*solved*) - by patters - 2021-01-03, 01:52 AM
RE: PAUSE not working (*solved*) - by boriel - 2021-01-03, 06:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)