Action_programming_language Action_programming_language

Action programming language - Definition and Overview

Action! Programming Language was a programming language created by Optimized Systems Software for the Atari 8-bit family of microcomputers. Its syntax was similar to that of C, and it was well-known for its speed.

Example code

The following is example code for Sieve of Eratosthenes written in Action:

BYTE RTCLOK=20, ; addr of sys timer
     SDMCTL=559 ; DMA control

BYTE ARRAY FLAGS(8190)

CARD COUNT,I,K,PRIME,TIME

PROC SIEVE()

  SDMCTL=0 ; shut off Antic
  RTCLOK=0 ; only one timer needed

  COUNT=0         ; init count
  FOR I=0 TO 8190 ; and flags
    DO
    FLAGS(I)='T
    OD

  FOR I=0 TO 8190 ; and flags
    DO
    IF FLAGS(I)='T THEN
      PRIME=I+I+3
      K=I+PRIME
      WHILE K<=8190
        DO
        FLAGS(K)='F
        K==+PRIME
        OD
      COUNT==+1
    FI
    OD
  TIME=RTCLOK ; get timer reading
  SDMCTL=34   ; restore screen

  PRINTF("%E %U PRIMES IN",COUNT)
  PRINTF("%E %U JIFFIES",TIME)
RETURN

External links


Example Usage of programming

BrainBattleICPC: Are you headed to #IBM sponsored International Computer programming Contest World Finals in China? Check out the schedule: http://ow.ly/L5ff
GreaterBoston: The ABC anchor shuffle: Does any of this help ABC? Is it the worst programming decision since Leno at 10? Does anyone care?
GeneralProfound: i never thought this would happen, but its funny how UR view of websites changes once U started programming in earnest & not just out of fun
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.