Introduction to assembly language

Introduction to assembly language Introduction to assembly language 1: Environmental preparation Execution: sudo apt-get update Execution: sudo apt-get install nasm Check: New file: vi t.c int main() { return 0; } New file: first asm global main main: mov eax, 0 ret Compile to generate first file (32-bit system): ...

Posted by yitanpaocai on Wed, 02 Feb 2022 20:45:55 +0100

Summary of assembly language used in freertos

Multiple memory access exclamatory mark! Indicates the value of the base register Rd to be incremented or decremented. The timing is before or after each access. Increase / decrease in words (4 bytes). Ldr R1,=0x10000000 //Starting address of transmitted data 0x10000000 LDMIA R1!,{R0,R4-R6} //Load from left to ...

Posted by karikamiya on Wed, 26 Jan 2022 11:51:53 +0100

Compilation of 32-bit Huffman coding (super detailed)

1, Title Requirements Implemented in assembly language Huffman Coding algorithm. Requires output of the given character set Huffman Coding and its The weighted path length WPL of Huffman tree assumes that the message used for communication is only composed of letters a, b, c, d, e, f, g and h. The frequency of letters in the message is ...

Posted by rabidvibes on Fri, 21 Jan 2022 05:00:06 +0100

Assembly language (Fourth Edition) Experiment 5 write and debug program solutions with multiple segments

(1) compile, connect, load and track the following programs with Debug, and then answer questions assume cs:code,ds:data,ss:stack data segment dw 0123,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h data ends stack segment dw 0,0,0,0,0,0,0,0 stack ends code segment start: mov ax,stack mov ss,ax mov sp,16 mov ax,data ...

Posted by gatoruss on Wed, 19 Jan 2022 19:16:33 +0100

Experiment 4 of assembly language Wang Shuang Fourth Edition (including detailed explanation of [bx] and loop)

Basic concepts All experimental addresses of assembly language [bx] and memory unit [bx]And[0]similar,[0]Represents the memory unit, and the offset address is[0],The segment address defaults to ds example: mov ax,[0] ->Send the contents of a memory unit into ax(The length of memory unit is 2 bytes, which mainly depends on ax (2 bytes) ...

Posted by akabugeyes on Tue, 04 Jan 2022 21:05:14 +0100

A little curiosity about linux: linux startup process

Always curious, how does the operating system work? We know how normal programming makes the code run, but those are high-level things. Later on, you will feel like a castle in the air, or someone has paved a lot of truth for you, but you know nothing about it.   1. Confusion of operating system Of course, I don't really know anything. Because ...

Posted by teddirez on Tue, 04 Jan 2022 10:42:47 +0100

The use and advancement of pygame

Use of pygame Pygame is a cross platform Python module designed for video games, including images and sounds. Based on SDL, real-time video game development is allowed without being bound by low-level languages (such as machine language and assembly language). Minimum game development framework impo ...

Posted by expert_21 on Fri, 12 Jun 2020 12:30:57 +0200

python programming from introduction to practice

1. Computer core foundation 1.1 what is language? What is programming language? Why programming languages? Language is actually the medium of communication between people, such as English, Chinese, Russian, etc. Programming language is the medium of communication between people and computers, The purp ...

Posted by earunder on Sun, 07 Jun 2020 12:41:44 +0200

Getting Started with Android Reverse Cracking

Preface A little bit of Android Reverse was done the year before, but it hasn't been done for a long time. Recently, a buddy asked me to help him do a subtitle about Android Reverse, so pick up the knowledge of Android Reverse and start over. This apk is a very simple, entry-level Android Reverse Analysis program, so this article is main ...

Posted by manyamile on Sat, 23 May 2020 06:55:43 +0200

Analysis of ARM start process and start code

1, ARM startup process Most of the chips based on ARM are complex on-chip systems. Most of the hardware modules in this complex system are configurable. It is up to the software to set the required working state. Therefore, before the user's application, a special piece of code is needed to complete the initialization of the system. Because ...

Posted by nassertx on Wed, 08 Apr 2020 09:01:44 +0200