Off Topic > Off Topic
big nerd trying to learn assembly
16-Bit:
nerd
SubDaWoofer:
--- Quote from: 16-Bit on November 18, 2017, 09:41:30 PM ---nerd
--- End quote ---
no you
Gojira:
awh stuff assembly language is fun
good luck
SubDaWoofer:
ok no w what the f uck
i tried running only
--- Code: ---CALL $824A
--- End code ---
and it ran the original code (it clears screen and prrints hello world in center)
but when i change it to $823A it doesnt clear the screen? (it still prints helo world even though i havent loaded any of the other ROMCalls)
this is strange
edit:
ok nevermind i think i may've found whats happening
i changed it to $822A and i belive whats happening is that its only calling the machine code for printing helo world without cleaing the screen because when i ran $822A it ran a MEM ERROR
EDIT 2: ok so what i think its doing is that it loads $824A into memory and starts recording the data i belive
then it proceeds to record all of the data into $824A and then it runs it when you do Asm(ASM01
SubDaWoofer:
ok again yet another post
i edited LD HL, $0300 to LD HL, $0104 and apparently it changes where it prints the "Hello World" at
since it went from 3 lines down to 1st line down and 4 words across from the edge
edit:ive been looking at the code again and since the next line from LD HL, $0300 is just above LD ($0FC0), HL
i belive that ($0FC0) might be a "variable" (calls back to) for VRAM that stores two bytes and tells where to put a certain string of letters or numbers at
since its $nn1 and $nn2 where $nn1 is the columns and $nn2 is the rows and then that allows the vram to print to a certain part of the screen i guess?
EDIT 2:
so when i decipher stuff im gonna use the prefix ^# to indicate what the hell it does
--- Code: ---CALL $824A ^# edit5: clears screen actually i think
LD HL, $0300 ^# it puts $0300 in HL so it can load into...
LD ($0FC0), HL ^# this, i belive that ($0FC0) is the ""variable"" for VRAM to know which column and row to print a string or a thing
--- End code ---
EDIT 3:
oH WhaTi tried running CALL $5BD7 but instead i used $5BD6
and it outpitted somethn like
--- Code: ---: x
: [sub]4[/sub]
:
--- End code ---
EDIT 4:
$5BD7 may be a location of VRAM i think
cause when i change it, it glitched the F out