logoalt Hacker News

egypturnashtoday at 5:40 PM1 replyview on HN

C64 BASIC is kind of a mess, there's zero support for graphics and sound. Your code rapidly becomes a giant pile of POKEs and PEEKs, and all your operations become absurdly slow because all the math routines are floating point only, so there's a ton of integer/fp conversion overhead on something as simple as "peek a memory location, AND/OR it with a few values taken from variables stored as floating point, poke it back".

Assembly becomes really attractive really quickly.


Replies

Woansdeitoday at 8:21 PM

C64 Basic did have integers.

A floating point

A$ string

A% int

as you would expect ints are quicker.

show 1 reply