This Function Destroys Programs: MS-BASIC's VAL()

  Рет қаралды 45,032

8-Bit Show And Tell

8-Bit Show And Tell

Күн бұрын

There's a bug lurking in the VAL() function of most early implementations of Microsoft BASIC that has the power to corrupt your program. We demonstrate it on the Commodore 64 and VIC-20, but it's present on many other 6502-based machines, as well as Z80 and even 6809 computers as discovered by many helpful people on the internets. We then attempt to explain why the bug happens: it's the result of a kind of nasty hack using Microsoft BASIC's evaluation routine combined with the particular edge case when an overflow error occurs.
The VIC-20 Quick Reference Handbook by Jeff Daniels: jeffdaniels.itch.io/vic-20-qu...
Tool Kit: BASIC archive.org/details/Compute_s...
Allen Huffman's blog: subethasoftware.com/2023/08/1...
All the X-Tweets:
/ 1692238191720600008
/ 1692313328209559923
/ 1693074790855102861
/ 1692300818815283262
/ 1692368840569851958
Closing song lyrics "Call An Awesome Superhero" by Robin's son, aged 5.
To support 8-Bit Show And Tell:
Become a patron: / 8bitshowandtell
One-time donation: paypal.me/8BitShowAndTell
2nd channel: / @8-bitshowandtell247
Index:
0:00 A bit about VAL()
2:31 + Addition or Concatenation?
4:42 10 A=VAL("1E39"):REM SHOW BUG
7:53 The VIC-20: VAL(TI$)
11:45 Tool Kit: BASIC Explanation
13:40 About the Overflow Error? 39 digits
15:14 VAL() needs a null-terminated string
18:30 Machine Language Monitor time
22:22 Thanks to my patrons and X-Twitter pals!

Пікірлер: 408
38911 Bytes Free? Commodore 64's BASIC RAM
29:57
8-Bit Show And Tell
Рет қаралды 38 М.
WAITing for BASIC on the Commodore 64
31:42
8-Bit Show And Tell
Рет қаралды 22 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 12 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 37 МЛН
Cracking a C64 Game From Cassette: Livingstone, I Presume?
35:36
8-Bit Show And Tell
Рет қаралды 43 М.
Understanding how a demo works on the Commodore 64 (English)
8:41
Commodore 64 & 6510 retro-programming
Рет қаралды 6 М.
The Clever Way to Count Tanks - Numberphile
16:45
Numberphile
Рет қаралды 550 М.
The Tiny Type-In Hiding In A 40-Year-Old Blank Computer Cassette
27:27
8-Bit Show And Tell
Рет қаралды 155 М.
Jim Butterfield's 1986 Computer Diary - Commodore Reference Diary
40:42
8-Bit Show And Tell
Рет қаралды 17 М.
One Bad Byte Broke This Game: Commodore 64's "Livingstone, I Presume?"
40:31
8-Bit Show And Tell
Рет қаралды 107 М.
43-Year-Old INPUT Bug Fixed: From C64 to VIC-20
35:56
8-Bit Show And Tell
Рет қаралды 16 М.
How To Start An ISP (like it's 1993)
16:54
The Serial Port
Рет қаралды 179 М.
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 29 МЛН
Лучший браузер!
0:27
Honey Montana
Рет қаралды 1,1 МЛН
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 1,3 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,3 МЛН