Introduction to Assembly Programming with ARM - Arithmetic and CPSR Flags

  Рет қаралды 5,241

OliveStem

OliveStem

Күн бұрын

Пікірлер: 9
@roshinsoni
@roshinsoni 3 жыл бұрын
good explanation of cpsr register and subs
@Turjak_art
@Turjak_art 2 жыл бұрын
I did same like in your first example but this site gives me different output, for example in your code the instruction MOV R1, #7 will be displayed in the left corner under registers as 00000007 but for me its output is 00000000. Although the disassembly section shows mov r1, #7 ; 0x7
@olivestemlearning
@olivestemlearning 2 жыл бұрын
I've seen a few reports of this sort of problem, it seems to be an issue with cpulator. In this case, there are a few different things you can try: 1. Try running the emulator in a different browser. I use Firefox on Windows in my videos, this will help to rule out any browser issues 2. If the issue persists in other browsers, it is probably best to try running ARM through qemu. I have a video tutorial for setting this up at kzbin.info/www/bejne/jabFcqiwac2Dprs
@Turjak_art
@Turjak_art 2 жыл бұрын
@@olivestemlearning Thank you. I tried Opera, Firefox, Chrome same result. Have to be a bug or something. I was using Qemu before but cpulator has a nice representation
@Lp-er9oj
@Lp-er9oj 2 жыл бұрын
hi nice video, i understand all and im from argentina. How can i use the S with mov, what do the operation movs do
@olivestemlearning
@olivestemlearning 2 жыл бұрын
The operation MOVS will move data from a source to a destination, as well as update the CPSR flags. Specifically, it will set the N flag if the value moved is negative and it will set the Z flag if the value moved is 0. This instruction would be used in situations where you want to ensure the Z and N flags are set properly after a move, since MOV would not set the flags by default
@Arae_1
@Arae_1 6 ай бұрын
@@olivestemlearning so why would you not use MOVS every time?
@Arae_1
@Arae_1 6 ай бұрын
woops I didn't watch 4 seconds forwards in the video
@kiriInvestigator4597
@kiriInvestigator4597 2 жыл бұрын
Great video, dude. Can I be your friend and lab partner? so you can help me and maybe I can help you later on when I become proficient in the assembly language.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,8 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 142 МЛН
ARM Assembly: Lesson 10 (Function Calls)
14:39
LaurieWired
Рет қаралды 8 М.
ARM Assembly Branch Instructions
21:34
Jonathan Muckell
Рет қаралды 14 М.
ARM Assembly: Lesson 6 (Shift and Rotate)
19:05
LaurieWired
Рет қаралды 4,6 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18