Welcome to 2stoned’s barf bag & scratch pad


Reading between the Scanlines: C64 Programmer’s Reference Guide
@ 1753431000

Character Set Accessibility Varies by VIC-II Bank

On page 124, the footnote states:

“The Commodore 64 character set is not available to the VIC-II chip in BANKS 1 and 3."


Many programmers may know about video bank switching, but may not realize that if you switch to certain banks (specifically banks 1 or 3), the character generator ROM is not accessible to the VIC-II for screen rendering. This affects custom character graphics and can cause “garbage” characters if not properly managed.


BasicUpstart2(start)

start:
   lda #%00000010 // Set VIC bank to BANK 1 (bit 1 = 1)
   sta $DD00 // CIA2 port A

   lda #$10 // Screen at $4000 (bits 4–7 = $10 << 6 = $4000)
   sta $D018 // Set VIC-II memory pointers (screen/charset)

   rts

ffmpeg notes
@ 1746806400

Convert PNG to 1080 width.

ffmpeg -i input.png -vf “scale=1080:-1” output.png

Make instragram friendly MP4 from PNG (w/scrolling)

ffmpeg -loop 1 -i input.png -vf “fade=t=in:st=0:d=3,fade=t=out:st=15:d=3,scroll=vertical=0.001,scale=-1:1920, crop=iw:1080:0:0,format=yuv420p” -t 20 output.mp4

Pause video at the beginning Create intro

ffmpeg -loop 1 -i judgedredd1080.png -vf “crop=iw:1920:0:0,format=yuv420p” -t 4 judgedredd-intro-1080x1920.mp4


telebasic (telehack’s dartmouth basic) notes
@ 1728661200

CINT() and NINT() behavior


10 ? "NINT()":? "nint(3.4)=";:? nint(3.4):? "nint(3.5)=";:? nint(3.5):? "nint(3.6)=";:? nint(3.6)
20 ? "CINT()":? "cint(3.4)=";:? cint(3.4):? "cint(3.5)=";:? cint(3.5):? "cint(3.6)=";:? cint(3.6)

NINT() - rounds down nint(3.4)= 3 nint(3.5)= 3 nint(3.6)= 4 CINT() - rounds up cint(3.4)= 3 cint(3.5)= 4 cint(3.6)= 4


rename cookbook entry
@ 1724736780

rename – ’s/.././g' * removes double dots (shows escaping)

rename – ’s/ /./g' * to sub . for space in filenames.