Join GitHub today
Versions of jbit compiled for Android are available. They should work on any Android version 1.5 or later (for ARM, 2.3 for X86/MIPS). The static versions should also work on most Linux distributions.
In this page, I assume that you have installed Jack Palevich's terminal. Other (good) terminals should also work.
Binaries for other architectures (X86 and MIPS), together with static versions of the binaries are available here (the
From the terminal, go to a directory where you can make files executable:
u0_a51@android:/ $ cd u0_a51@android:/data/data/jackpal.androidterm/app_HOME $
Copy jbit there and change its permissions:
...app_HOME $ cat /mnt/sdcard/Download/jbit-android-arm-pie.bin >jbit ...app_HOME $ chmod 755 jbit
Switch to an editor capable of creating ASCII text files and create, for example, a program named
lda #'X' sta 2:0 lda #10 sta 2:0
Switch back to the terminal and run it:
...app_HOME $ ./jbit /mnt/sdcard/tmp/hello.txt X
Bare Android can be quite inconvenient, so I recommend using a more powerful environment like kbox, and maybe an advanced soft keyboard like the Hacker's Keyboard.
A minimal installation of kbox can be quite small and can easily fit in the internal memory of a low-end phone. To install it, follow the instructions that you can find here (kbox3). Previous versions of kbox should also work.
The installation of jbit is similar to the above:
vbox$ cp /android_root/mnt/sdcard/Download/jbit-android-arm-pie.bin /bin/jbit vbox$ chmod 755 /bin/jbit
Since jbit is linked with the bionic runtime, it should play well with the kbox fakeroot environment.
cc65 for Android is available here: https://github.com/efornara/cc65/releases
Installation instructions are available here: https://github.com/cc65/wiki/wiki/Android, where some general information about running command line programs on Android can also be found.