Off Topic > Off Topic
big nerd trying to learn assembly
SubDaWoofer:
ok nevermind??
CALL $824A
just clears the screen i think
because romcalls do specific things
and i was just being dumb because ive never done assembly and i just realised that ROMCALLS do stuff
Truce:
You want to interpret those addresses as little endian. The $4AXX addresses are some functions in ROM you'd have to post the code for, $C00F (used as temporary storage) and $D75B are in RAM, and $0003 looks like screen coordinates for whichever one is the printing function.
carolcat:
--- Quote from: Gojira on November 18, 2017, 10:49:09 PM ---awh stuff assembly language is fun
good luck
--- End quote ---
is it tho
/dev/sr0:
--- Quote from: Gojira on November 18, 2017, 10:49:09 PM ---awh stuff assembly language is fun
good luck
--- End quote ---
You and I have very different definitions of "fun".
SubDaWoofer:
--- Quote from: Truce on November 19, 2017, 10:23:44 AM ---You want to interpret those addresses as little endian. The $4AXX addresses are some functions in ROM you'd have to post the code for, $C00F (used as temporary storage) and $D75B are in RAM, and $0003 looks like screen coordinates for whichever one is the printing function.
--- End quote ---
o yea i forgot that little endian exists
thank
SO
--- Code: ---##preface
##$ means hex
##(nn) means the location that the memory is loaded at is used
## ^# means what ithink it does
## using little endian here
CALL $824A ^# clears screen
LD HL, $0300 ^# puts a number in "secondary" acc. for storage so it can...
LD ($0FC0), HL ^# load the number into the VRAM "pointer" that "points" to which part of the screen to print to: also it isnt F00C its 0FC0 because little endian
LD HL, $5BD7 ^# dunno what the rest of this means yet
CALL $374A
CALL $5F4A
RET
Hello World ##null character at the end of the "World" to signify end of program i guess?
--- End code ---
--- Code: --- $4A** NUMBERS ARE ROMCALLS
$0FC0 IS THE THIN THAT VRAM CALLS TO KNOW WHERE TO PRINT stuff
--- End code ---