hackclub / some-assembly-required

📖 An approachable introduction to Assembly.
Other
3.16k stars 138 forks source link

fix 6502 errors + add contributors list #62

Closed bellesea closed 2 years ago

bellesea commented 2 years ago

@jessicard does this look good to you?

specifically, what do you think about the way we include the contributor list + is following explaination clear?

At memory location $0010 there is the value #$01 and at memory location $0011there is the value #$02. JMP ($0010) At the end of the example, we are jumping to memory location $0102

In this instance, we do 2 things:

  1. Retrive the data at memory location $0010. However, instead of only retrieving data at memory location $0010, we also want to retrieve data at memory location $0011 (as absolute addresses need 16-bit numbers). Remember the part under Registers and Ram where we mentioned using multiple memory locations? So here, we retrieve the number #$01 and #$02 from memory location $0010 and $0011 respectively. As 6502 is a little-endian processor, it stores the least significant byte (lower value) first. This means two byte data (like memory locations) store the least significant byte in the first memory address ($0010) and the most significant byte in the second address ($0011) . For example, the following hexadecimal number #$0201, the 01 is the least significant byte and 02 is the most significant byte. (Using a decimal example, 1030, the 30 which refers to thirty is smaller than the 10 which refers to one thousand.)
  2. Jump to this retrieved absolute location: $0201

thank you so much!

bellesea commented 2 years ago

thank you so much @jessicard!!!

bellesea commented 2 years ago

fixes #59 #58