Machine Language Tutorial Disk's journal picture

Machine Language Tutorial Disk

followFollow
🤴
Administrator: eZine
🕒
Created 22 Aug 2019
📄
6 Articles

Machine Language Tutorial Disk Part 6

eZine's profile picture
eZine lover (@eZine)
Published in 
 · 22 Aug 2019
*************************************** * * * PART VI OF DR. FIRMWARE'S M.L. TUT. * * * *************************************** As was previously said, this article is about monitor, assemblers and other methods of entering M.L. programs into memory. Poking and calling. To enter a program into memory from BASIC, one can POKE the decimal equivalents of the hex op-codes (the values that the microprocessor understands) into the appropriate range of memory and then calling the subroutine with a 'CALL' statement. This method is quite tedious and complicated due to the fact that one would have to derive the hex codes by oneself by looking them...

Machine Language Tutorial Disk Part 5

eZine's profile picture
eZine lover (@eZine)
Published in 
 · 22 Aug 2019
*************************************** * * * M.L. PART FIVE BY DR. FIRMWARE * * * *************************************** This part is going to be about the arithmetic and logic unit of the 6502. The ALU is what does the addition and subtraction and bit operations. Presently, we will only cover the math, leaving the bit operations for later. If you read the previous column, you will have noticed that the CMP 'subtracts' two numbers. this subraction takes place in the ALU. To subtract two numbers, we use the SBC command. In immediate addressing mode, the arguement is subtracted from the value currently held in accumulator, and the result...

Machine Language Tutorial Disk Part 4

eZine's profile picture
eZine lover (@eZine)
Published in 
 · 22 Aug 2019
*************************************** * MACHINE LANGUAGE TUTORIAL PART IV * *************************************** The CMP command CMP stands for CoMPare accumulator. It has an immediate mode. In immediate mode, what happens is this: the value of the arguement is subtracted from the contents of the accumulator and this result is dicarded except for the effects on the zero, negative and carry flags. English translation immediately following. We'll take it slowly. The value of the arguement is the byte following the operator. This value is subtracted from the contents of the accumulator. Say the arguement is $40 and the accumulator hold...

Machine Language Tutorial Disk Part 3

eZine's profile picture
eZine lover (@eZine)
Published in 
 · 22 Aug 2019
*************************************** * * * PART VII - ASSEMBLERS * * WRITTEN BY DR. FIRMWARE * * * *************************************** Assemblers are used for easily writing up code from mnemonics to hex. To do this by hand is tedious, to say the least, and eventually one will make an error here or there. Mnemonics are the codes that we have been using, like 'LDA'. Since these do not signify the addressing mode, there is a set of symbols that are normally used. To indicate immediate addressing mode, we put a '#' in front of the arguement. To indicate absolute addressing mode, we just put the address. To indicate indexed absolute m...

Machine Language Tutorial Disk Part 2

eZine's profile picture
eZine lover (@eZine)
Published in 
 · 22 Aug 2019
*************************************** * * * * * MACHINE LANGUAGE TUTORIAL DISK * * * * WRITTEN BY DR. FIRMWARE * * * * * *************************************** PART II Machine language command structure. Even though this sounds complicated, the structure of machine language commands is quite simple. The command is one to three bytes long and consists of two sections, the operator and the arguement. The operator is always one byte long and the arguement is either zero, one or two bytes long. If the arguement is zero bytes long, then it is said that there is no arguement for that command. The accumulator The accumulator is the primary r...

Machine Language Tutorial Disk Part 1

eZine's profile picture
eZine lover (@eZine)
Published in 
 · 22 Aug 2019
*************************************** * * * * * MACHINE LANGUAGE TUTORIAL DISK * * * * WRITTEN BY DR. FIRMWARE * * * * * *************************************** The aim of this disk is for you the reader to understand machine language to an extent so that you can program fully in machine language (ml). PART I The fundamentals. The first part of the course is number bases. if you undestand binary and hexadecimal numbers and conversion between these and decimal, you can skip to the next section. Binary: Base two. Number bases are what we are dealing with here. The number base that we normally use in everday life is decimal. 'Decimal' com...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT