Jump to content

You Know You're A Nerd When:


cubinator

Recommended Posts

When the teacher says:

Quote

Plot n(g) as a function of n(a), using the tool of your choice.

so you write this:

Spoiler
scr = $4000 ; Position of screen data
; Look at address $4000 to $4FFF to see the screen
; It's a 64x64 bit array (pixels either on or off)
datX = $FF80
datY = $FF90
datLen = 10 ; 10 data couples to read

px_x = $0204
px_y = $0205
px_idx = $0206


.org $8000

  lda #0
  ldx #0
clear_loop:
  sta scr, x ; engage screen cleaning
  inx
  beq clear_ex
  jmp clear_loop
clear_ex:
  ldx #datLen
main_loop:
  dex
  beq nop ; we printed everything
  lda datX, x
  rol ; Divide x coord by 2 to fit scr
  sta px_x
  lda datY, x
  sta px_y
  jsr pixel
  jmp main_loop

nop:
  jmp nop

init_ex:
  rts

pixel:
  lda px_y
  rol
  rol
  rol
  tab
  lda px_x
  ror
  ror
  ror
  add
  sta px_idx
  lda px_x
  ldb #7
  and
  tax
  lda #1
px_msk_loop:
  dex
  beq px_msk_ex
  rol
  jmp px_msk_loop
px_msk_ex:
  tab
  lda scr, px_idx ; Get byte
  or ; Turn the corresponding bit on
  sta scr, px_idx ; Put byte back
  rts

.org datX ; x coordinates

.byte 10
.byte 20
.byte 30
.byte 40
.byte 50
.byte 60
.byte 70
.byte 80
.byte 90
.byte 100


.org datY ; y coordinates

.byte 10
.byte 20
.byte 30
.byte 40
.byte 59
.byte 59
.byte 59
.byte 59
.byte 59
.byte 59


.org $FFFA ; Obligatory processor stuff

.word $0000
.word $8000
.word $0000

(never let me choose anything if you want to preserve your sanity)

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
On 4/4/2023 at 10:31 PM, LHACK4142 said:

it's pretty nerdy to have that much knowledge in trucks lol

I really only know a couple models of Kenworth trucks and that they start with "T-", I only assumed the T-800 was a think since I knew there was a T-880. European trucks on the other hand...let's just say ETS2 helped me out a bit with that. I mean, technically you could say that ETS2 first really got me interested in geography.

When you hear the story about Sarah Rodo and think she's not crazy at all. ;)

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...
2 hours ago, OrdinaryKerman said:

Wait what game is DDR… oh. 

Tetris with RAM modules.

 

2 hours ago, Ben J. Kerman said:

When you hear DDR and the first thing you think of is the country and not the game.

When I hear DDR in context of memory, it still sounds funny for me that they named the RAM type after the name of DDR state.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...