Off Topic > Off Topic

big nerd trying to learn assembly

Pages: (1/4) > >>

SubDaWoofer:

so i was really bored today so i decided to take a shot at learning assembly with my calculator (ti 86, i have a Nspire but those things are weird to program)
only problem tho is i dont have a graph link cable and i dont want to buy one so im stuck with hexcode assembly on the calculator
so what im tryna do right now is decompose this program:

--- Code: ---:ASMPRGM
:CD824A
:210300
:220FC0
:215BD7
:CD374A
:CD5F4A
:C9
:48656C6C6F20576F726C6400

--- End code ---
to understand how the forget you can program a z80 and the hexcodes
i guess ill take help and ill post updates along the way
edit: forget forgot to post links
i've been using this website to look at the traditional z80 assembly to hexcode assembly so i can understand this
http://jgmalcolm.com/z80/opcodes/opcodesB

SubDaWoofer:

so far i've decomposed it into this:

--- Code: ---##preface
##$ means hex
##(nn) means the location that the memory is loaded at is used
CALL $824A
LD HL, $0300
LD ($0FC0), HL
LD HL, $5BD7
CALL $374A
CALL $5F4A
RET
Hello World ##null character at the end of the "World" to signify end of program i guess?

--- End code ---


/dev/sr0:

Did you try turning it off and then back on

SubDaWoofer:


--- Quote from: /dev/sr0 on November 18, 2017, 09:19:02 PM ---Did you try turning it off and then back on

--- End quote ---
whats an off button???
yes

SubDaWoofer:

dDOuBl Post
anyways i looked at why it used HL so much
so since A (the acc) is used so much for regular adding ands stuff HL was added as a secondary ACC which its being used for in this purpose
its also for storing the locations of stuff so thats why theres a "MOV HL, ($0FC0)" (simpligying to make it esaier to understand)

Pages: (1/4) > >>

Go to full version