Created
January 7, 2026 06:46
-
-
Save LightningStalker/8de94fea62147affcb78c7bc7d4e2c68 to your computer and use it in GitHub Desktop.
The Twiddlebit Zone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NAME tz | |
| PAGE 55,132 | |
| TITLE TLZ.COM | |
| .MODEL TINY | |
| ; | |
| ; TLZ.COM: The Twiddlebit Zone | |
| ; | |
| ; Project Crew, 12.27.2025 | |
| ; | |
| .CODE | |
| ORG 100h | |
| start: | |
| mov bp, offset b | |
| mov cl, 4 | |
| mov bx, 4 | |
| mov dx, 84c9h | |
| setptr: | |
| mov di, BUFSIZE ; b[] you di | |
| clc | |
| do: | |
| mov ax, word ptr [bp + di] ; is in b[di] | |
| add ax, bx ; now fold | |
| xor ax, dx | |
| xchg ah, al | |
| rol al, cl | |
| not ax | |
| rol ah, cl | |
| xor ax, dx | |
| sub ax, bx ; it figures | |
| mov [bp + di], ax | |
| sub di, 2 | |
| jnc do ; now b hold our | |
| bye: | |
| mov ax, 4c45h ; sweet | |
| int 21h | |
| b DB "Sir Reldnog" ; what it held | |
| BUFSIZE equ SIZEOF b - SIZEOF b MOD 2 ; this was no fun | |
| END start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment