43-3813.44
Current document: editor~typewiz
Last edited on: 39-3722.01
Last edited by: typewiz
CONNECTION STABLE
│ ├─ [ RANDOM ENTRY ] ├─ [ ALMANET QUERY PROCESSOR ] │ ├─ INDEX - Index │ ├─ 000 - Overview & Rationale │ ├─ 001 - AlmaNet │ ├─ 002 - Navigating AlmaNet │ ├─ 003 - AlmaNet Editing Policy │ ├─ 100 - Geography & Locations │ ├─ Galactic Navigation │ ├─ Airesem │ ├─ Alden │ ├─ Arcology Six │ ├─ Camia │ ├─ The Channel │ ├─ Comcast Station │ ├─ Comprann │ ├─ Delton │ ├─ Devlin │ ├─ DS Tucanae A-b │ ├─ Eclias │ ├─ Eris (system) │ ├─ Galathea Station │ ├─ Navareo (system) │ ├─ Dulcinea │ ├─ Eddystone │ ├─ Emac │ ├─ Envilles │ ├─ Four │ ├─ Halenn │ ├─ Hawking Station │ ├─ Hora │ ├─ Telenn │ ├─ 200 - Species & Biology │ ├─ Navarean │ ├─ Tallisite │ ├─ Human │ ├─ Varyn (species) │ ├─ 300 - Society & Culture │ ├─ Blackporter │ ├─ Education in the World Unity │ ├─ Universe Fair │ ├─ Universal Time │ ├─ Universal Language │ ├─ 400 - History & Folklore │ ├─ Ada (first android) │ ├─ Battle of Galathea Station │ ├─ Death of Earth │ ├─ Martian Backup │ ├─ Parallel Descendants (myth) │ ├─ Tidēs Merge Incident │ ├─ Airesem Prison Riots │ ├─ 500 - Science & Technology │ ├─ Android (product) │ ├─ Android Personality Disorder │ ├─ Applied Reality Theory │ ├─ Facsimile │ ├─ Low Reality │ ├─ N-type neural coprocessor │ ├─ Neutral beam (realistics) │ ├─ Realistics drive │ ├─ Theodyne prism │ ├─ Theorium │ ├─ Synaptronics │ ├─ 600 - Factions & Organisations │ ├─ 601 - Corporations │ ├─ Inter Planet Indicator │ ├─ Lightspeed Industries │ ├─ Porters United │ ├─ Theotech, LLC │ ├─ UNI, LLC │ ├─ 602 - Sovereign States │ ├─ 603 - Religious Organisations │ ├─ Church of the Sundom │ ├─ Milkwalkers │ ├─ 604 - Non-governmental │ │ Factions │ ├─ Interstellar Police Department │ ├─ Tallis Institute │ ├─ 605 - Governing Non-State │ │ Structures │ ├─ World Unity │ ├─ 700 - Notable Persons │ ├─ Bill Taswell │ ├─ Lutèce Nehalem │ ├─ Morton Powell │ ├─ C-Null │ ├─ Theodore Rose │ ├─ Tribeca Merri │ ├─ Dinah Rose │ ├─ Hatena Mouru │ ├─ 800 - Art & Media │ ├─ 900 - Miscellaneous │ ├─ Light Pipe │ ├─ Ruinous (adjective) │ ├─ AL0 - AlmaNet Support Files │ ├─ editor~astra │ ├─ editor~autoedit │ ├─ editor~colophist │ ├─ editor~galathea │ ├─ editor~mklien │ ├─ editor~ploughman │ ├─ editor~powell │ ├─ editor~starling42 │ ├─ editor~typewiz │ ├─ editor~zanezone │ ├─ editor~custodian │ ├─ editor~phobos │ ├─ AL1 - Supplemental │ ├─ ALMANET INTERNAL: AutoScript │ ├─ ALMANET INTERNAL: Keywords │ ├─ ALMANET INTERNAL: AlmaNet │ │ Query Processor │ ├─ AUTOTASK BOARD: ASTRA │ ├─ ALMANET INTERNAL: Mainframe │ │ output (0) │ ├─ Staff Credits

editor~typewiz

We're not out here to write a mediocre encyclopaedia.

In case you ever forget your password, use this.

SEQD
    INIT_YEAR
    CALC_PART1
    CALC_PART2
    COMBINE
    OUTPUT
SEQD

PTIN INIT_YEAR
    MOVE RTNL-DATE-YEAR Y  ; Initialize Y with the current year
    INIT X 100             ; Initialize X with 100
PEND

PTIN CALC_PART1
    MOVE "TYPE" ECHO  ; Put "TYPE" into ECHO
    LIFT ECHO         ; Lift "TYPE" onto PILE
PEND

PTIN CALC_PART2
    DIVV X Y          ; Divide 100 by current year
    INCR X            ; Increment X
    MULT X Y U        ; Multiply X by current year, store in U
    SUBV U X          ; Subtract X from U
    DIVV U Y          ; Divide U by current year
    MULT U Y V        ; Multiply U by current year, store in V
    SUBV U V          ; Subtract V from U
    MULT U -1 U       ; Multiply U by -1
    MOVE U ECHO       ; Move U to ECHO
PEND

PTIN COMBINE
    DROP ECHO         ; Drop "TYPE" from PILE to ECHO
    MOVE ECHO ECHO    ; Combine "TYPE" and U in ECHO
    MOVE Y ECHO       ; Append current year to ECHO
PEND

PTIN OUTPUT
    LIFT ECHO         ; Lift the result onto PILE
    DROP TTY0         ; Output the result to the terminal
PEND

PSTR  ; Start executing patterns

This page contains ancillary content protected by an access code. If you are authorised to view this content, please enter the access code below.