GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — forth-atari/variables/LOCALS-MINI.4TH at main · BartGo/forth-atari

Expand file tree

/

LOCALS-MINI.4TH

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
27 lines (23 loc) · 639 Bytes
/

LOCALS-MINI.4TH

Copy path

File metadata and controls

27 lines (23 loc) · 639 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
( Simple Local Variables )
( Tested on Atari 8-bit, )
( APX Forth; by BartGo, )
( similar to FD-V03N6/185)
( Will NOT work in loops )
( or with R-stack change )
: 'L ( n -- a )
1 - 2 * ( n )
R> R> R ( n R1 R2 r3 )
ROT ROT ( n r3 R1 R2 )
>R >R + ; ( a=r3+n )
( test similar to the one from FD-V03N6 )
: BOX ( x y z m -- a b )
R> HERE >R >R ( store HERE below RS top )
0 DO , LOOP ( create M locals )
1 'L @ 2 'L @ 3 'L @ * * ( vol )
1 'L @ 4 *
2 'L @ 4 * +
3 'L @ 4 * + ( vol edge )
R> R> DP ! >R ; ( old DP ) ( vol edge )
21 4 8 3 BOX
132 ?PAIRS
672 ?PAIRS
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.