WHORING FOR SHEEP
- Elizian
- Baaaaaaa!

- Posts: 7071
- Joined: Tue Apr 23, 2002 11:20 am 0
- Yahoo Messenger: niimaur
- Location: SE Northumberland
- Contact:
That reminds that IBM once wrote a 1-line Assembler program with a bug in it! Allegedly, the executable program IEFBR14 was first published with just one instruction: 07 FE (an unconditional branch to the address in register 14)
It was intended as a universal exit program or a program to call to perform device allocation, etc.. Sadly, they forgot to set the Return Code into any user accessible register, so the program was always "successful", even when the process preceding the link to IEFBR14 had been totally foxxed!
It was intended as a universal exit program or a program to call to perform device allocation, etc.. Sadly, they forgot to set the Return Code into any user accessible register, so the program was always "successful", even when the process preceding the link to IEFBR14 had been totally foxxed!
ASCII a silly question ... get a silly ANSI - Bog
- Muttley
- Sheepie Whore

- Posts: 13169
- Joined: Thu Apr 25, 2002 12:30 pm 0
- XBL Gamertag: Mu77ley
- Location: In a maze of twisty passages, all alike.
- Contact:
Code: Select all
10 A = 0
20 B = 255
30 POKE 53280,A
40 POKE 53281,B
50 A = A + 1
60 IF A > 255 THEN A = 0
70 B = B - 1
80 IF B < 0 THEN B = 255
90 GOTO 30
RUN
Code: Select all
$c000 ldx #$00
$c002 ldy #$FF
$c004 stx $d020
$c007 sty $d021
$c009 inx
$c00a dey
$c00b jmp $c004
SYS 49152
Muttley
Muttley's Blog: Rarely updated, occasionally interesting… maybe
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules
Didn't BASIC have a logical AND? It seems to make a lot morer sense to goMuttley wrote:Code: Select all
10 A = 0 20 B = 255 30 POKE 53280,A 40 POKE 53281,B 50 A = A + 1 60 IF A > 255 THEN A = 0 70 B = B - 1 80 IF B < 0 THEN B = 255 90 GOTO 30 RUN
Code: Select all
A=A&255
B=B&255\
(:-) - Yak
/
Justified and Ancient.
- Muttley
- Sheepie Whore

- Posts: 13169
- Joined: Thu Apr 25, 2002 12:30 pm 0
- XBL Gamertag: Mu77ley
- Location: In a maze of twisty passages, all alike.
- Contact:
You're right! But no "&" abbreviation apparently, a full "and" required!Yak wrote:Didn't BASIC have a logical AND? It seems to make a lot morer sense to goMuttley wrote:Code: Select all
10 A = 0 20 B = 255 30 POKE 53280,A 40 POKE 53281,B 50 A = A + 1 60 IF A > 255 THEN A = 0 70 B = B - 1 80 IF B < 0 THEN B = 255 90 GOTO 30 RUN
instead of the compare/reassignments...Code: Select all
A=A&255 B=B&255
\
(:-) - Yak
/

It's been a loooong time.
Muttley
Muttley's Blog: Rarely updated, occasionally interesting… maybe
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules
RetroRemakes Framework: Open Source BlitzMax Game Framework
MuttMod: My Open Source BlitzMax Modules



