The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

ApplesSoft BASIC code which includes assembly language: Twitter bot AppleIIBot could run it!

Posted by jpluimers on 2024/03/20

This was a trip down memory lane where I was totally unaware that you could embed 6502 assembly language inside AppleSoft BASIC code.

It turns you can, and even better: the Twitter bot named AppleIIBot could execute it too!

Though I bumped into AppleIIBot during winter 2021, I published the BBC equivalent last week (see BBC trip down memory lane – 8bitkick/BBCMicroBot: Runs your tweet on an 8-bit computer emulator) as that one got released earlier.

For the moment it is down because Elon blew up Twitter and shut down on 2022-11-05, but hopefully – like the BBC equivalent – it will resurface on a Mastodon instance somewhere in the future.

Luckily all old Tweets with code and rendering are still there, though you need a Twitter account to view them: Elon broke the feature of anonymous access seeing all messages in a thread.

Below the signature are the full Tweets that led me into it; the texts are these:

The bot ran from [Wayback/Archive] Apple II BASIC Bot (@AppleIIBot) / Twitter and supported both AppleSoft BASIC and Apple LOGO.

Run your Applesoft BASIC or Apple Logo code on an Apple II in Twitter. By @KaySavetz. (No sound yet.) Documentation at http://appleiibot.com

Given Elon blew up Twitter, the bot went out with a blast:

  1. [Waybacksave/Archive] deater on X: “@AppleIIBot 0REM…:GOTO5” / X
    0REM~/$5*>0E3O4P-R(V$["d"h$k&t$o+w)o1o:lChKdQ_V[YS]H`=`4^*Y2Y;V@S;Q7O4K3H9H4E0A-;-70939/4-.-*/$!
    1HGR2:HCOLOR=6:DEFFNP(X)=3*PEEK(2054+I+X)-99
    2IFFNP(0)=279THENHPLOTFNP(1),FNP(2):I=I+3
    4HPLOTTOFNP(0),FNP(1):I=I+2:IFFNP(0)GOTO2
    5HCOLOR=5:HPLOTRND(1)*279,RND(1)*192TO140,96:GOTO5
  2. [Wayback/Archive] Apple II BASIC Bot on X: “@deater78”

    [Wayback/Archive] video.twimg.com/ext_tw_video/1588678211571154944/pu/vid/364×270/jid0Xz9s7x4J79mH.mp4

    (Larger images below the signature)

Like BBCMicroBot, it is open source and has documentation. However unlike BBCMicroBot there are other bots from the same person for BASIC dialects on Atari and PC as well.

So here are some more links:

[Wayback/Archive] savetz/AppleIIBot: The code that runs the Apple II Twitter bot at https://twitter.com/AppleIIBot

[Wayback/Archive] savetz/Atari8BitBot: Code that runs the Atari 8-bit Twitter bot at https://twitter.com/Atari8BitBot

[Wayback/Archive] savetz/PCBASICBot: The code that runs the PC BASIC bot at https://twitter.com/PCBASICBot

AppleIIBot examples

Deater does has posted many cool scripts, for instance:

Others too, for instance the fire at [Wayback/Archive] Roberto Peña on Twitter: “@AppleIIBot 1 FOR X=768TO832:READ A:POKE X,A:NEXT:CALL 768:DATA 44,80,192,44,82,192,32,112,252,169,255,145,42,136,16,251,169,22,133,37,32,34,252,160,39,104,240,5,10,240,4,144,2,73,29,72,48,10,177,40,41,7,170,189,57,3,145,40,136,16,230,198,37,16,221,48,205,0,187,0,170,0,153,0,221

--jeroen


The blast

The tweets

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.