In an assembly language, how can I use pseudo-ops for an instruction? From what I know, an assembly file is converted to machine code using an assembler. Is there a way to directly send the op-code from the assembly file itself using pseudo-ops?
For example if there's some instruction, say ADD which has an op-code of 0101. Is there a way to use our that knowledge of ADD's op code being 0101 to just ADD two registers using 0101 from some memory location and not using the ADD instruction explicitly? I was looking for a hack and was wondering this.
Using an indirect opcode (retrieve the instruction byte from a data location specified in the instruction) is not supported in any machine language I know. But you have the following possibilities: