assembly - What type of assembler is this? -


  P.S. 1 mv c, 4 mv d, 3 mv a, p1: c dcr d jng p Add 1 to Sta pa end  

This is the assembly code I'm using, and I'm compiling it with 8085A emulator. But I can not find more information to know. I looked for MIPASASSMM, and found some tutorials, but no one worked with this compiler.

For example, I tried this:

  .data var1: .byte 4 var2: .byte 3 var3: .byte 0 .text main:  

But it says that they are all unknown commands

thanks in the first example.

You should use the 8080 type assembler. .data and .text 8080 types are not supported by the synapses because they produce a single block image such as .com file. Use DB instead of White or DW instead of .word. There are some additional instructions in 8085 which can be defined through macros. A separate set of Z80 additional instructions include

  ARHL macros, so these 8085 specific instructions are mostly done for BIOS or utilities especially for a 8085 computer (usually CP / M) Was ;. ARITH Right Shift HL DB 10H ENDM DSUB Macro; Hl = HL- B.C. DB 08H ENDM JNXC Macro X; JMP IF NOT LE LE (INX, DCX) DB 0DDH DW X ENDM JXC Macro X; Jmp if x le db 0fdh dw x endm ldhi macro i; DE = HL + I DB 28H DB I ENDM LDSI macro i; DE = SP + I DB 38H DB I ENDM LHLX macro; Hl = (DE) dB 0EDH ENDM RDEL macro; Rotate Day, CY Left DB 18h ENDM RIM Macro, Reset INT Mask DB 20H ENDM RSTV Macro; HSTM SHLX macro set to RST if V 40H DB 0C8; (DE) = HL DB 0D9H ENDM SIM Macro; Set INT Mask DB 30H ENDM  

Comments