assembly

using a trap to output characters in assembly using SPARC instruction set

 ̄綄美尐妖づ 提交于 2020-08-26 08:27:15
问题 My assignment is as follows: Given the assembly code below, write a successfully executing trap that prints out the message “It’s a Trap” and returns to your main code. I believe most of the work has already been done and this is likely an easy question but I'm working without any knowledge of assembly so I'm still very much in need of some help. I understand the concept of traps but not the syntax so what I'm really wondering is what kind of answer the question is looking for. The part

using a trap to output characters in assembly using SPARC instruction set

生来就可爱ヽ(ⅴ<●) 提交于 2020-08-26 08:27:14
问题 My assignment is as follows: Given the assembly code below, write a successfully executing trap that prints out the message “It’s a Trap” and returns to your main code. I believe most of the work has already been done and this is likely an easy question but I'm working without any knowledge of assembly so I'm still very much in need of some help. I understand the concept of traps but not the syntax so what I'm really wondering is what kind of answer the question is looking for. The part

ARM assembly: auto-increment register on store

北慕城南 提交于 2020-08-21 06:46:10
问题 Is it possible to auto-increment the base address of a register on a STR with a [Rn]! ? I've peered through the documentation but haven't been able to find a definitive answer, mainly because the command syntax is presented for both LDR and STR - in theory it should work for both, but I couldn't find any examples of auto-incrementing on a store (the loading works ok). I've made a small program which stores two numbers in a vector. When it's done the contents of out should be {1, 2} but the

Assembly Segments in opcodes

强颜欢笑 提交于 2020-08-21 05:29:31
问题 I noticed that in Assembly segments are used in opcodes. Example: MOV DWORD PTR SS:[EBP-30],30 I think that "PTR SS:" is used to specify that EBP-30 comes from the stack? (SS: stack segment) Am I right or am I completely wrong? :) And, could you please tell me the difference between the example above and MOV DWORD PTR[EBP-30],30 And what about DS (data segment) used in opcodes? 回答1: MOV DWORD PTR SS:[EBP-30],30 There are two separate modifiers here, DWORD PTR and SS: . The first one tells us