User Tools

Site Tools


spo600:assembly_language

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
spo600:assembly_language [2024/01/12 19:55] – created chrisspo600:assembly_language [2025/02/19 16:38] (current) – [Assembly Language] chris
Line 3: Line 3:
 //Assembly language// is a [[Symbol|symbolic]] representation of [[Machine Language|machine language]]. It is therefore very [[Portable|architecture-specific]]. //Assembly language// is a [[Symbol|symbolic]] representation of [[Machine Language|machine language]]. It is therefore very [[Portable|architecture-specific]].
  
-Each instruction is represented by a short mnemonic word such as "LDR" for //Load Register//, "MOV" for //move//, or "MUL" for //multiply//, followed by (optional) arguments. The [[Addressing Mode|addressing mode]] is implied by the format of the arguments. Different [[Assembler|assemblers]] use slightly different syntax.+Each instruction is represented by a short mnemonic word such as "LDR" for //Load Register//, "MOV" for //move//, or "MUL" for //multiply//, followed by (optional) arguments. The [[Addressing Mode|addressing mode]] is implied by the format of the arguments. The instructions and addressing modes available are defined by and specific to a particular target processor. Different [[Assembler|assemblers]] use slightly different syntax, even for the same processor.
  
 =====  Examples  ===== =====  Examples  =====
Line 98: Line 98:
  
 <code> <code>
- define SCINIT $ff81 ; initialize/clear screen + define SCINIT $ff81    ; initialize/clear screen 
- define CHROUT $ffd2 ; output character to screen + define CHROUT $ffd2    ; output character to screen 
-  JSR SCINIT ; clear screen+  
 +  JSR SCINIT ; initialize and clear the screen
   LDY #$00 ; set Y index to zero   LDY #$00 ; set Y index to zero
  loop: LDA msg,Y ; get a character  loop: LDA msg,Y ; get a character
spo600/assembly_language.1705089339.txt.gz · Last modified: 2024/04/16 18:10 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki