Assembly (receive several N-digit decimal values (0 ~ 65535) from the keyboard and display their sum in binary, decimal and hexadecimal number systems.)
subject
Receive several N-digit decimal values (0 ~ 65535) from the keyboard and display their sum in binary, decimal and hexadecimal number systems. requirement: (1) A subroutine is used to realize the input of an N-digit decimal value in the loop structure of the main program The subroutine is called. (2) When the user enters directly ...
Posted by MiniMonty on Sun, 05 Dec 2021 01:50:26 -0800
Assembly language (input several decimal values (0-9) from the keyboard and display their sum in decimal)
subject
Receive several one digit decimal values (0-9) from the keyboard and display their sum in the form of decimal data.
requirement: 1) The input of one decimal value is realized by subroutine 2) When the user enters directly without entering a value, the input is ended 3) The input data is multi digit decimal data, and the sum calculated ...
Posted by sachavdk on Fri, 03 Dec 2021 22:06:01 -0800
Experiment 2 compilation and debugging of assembly source program of multiple logic segments
4, Experimental conclusion
1. Experimental task 1
Task 1-1
task1_1.asm source code
assume ds:data, cs:code, ss:stack
data segment
db 16 dup(0)
data ends
stack segment
db 16 dup(0)
stack ends
code segment
start:
mov ax, data
mov ds, ax
mov ax, stack
mov ss, ax
mov sp, 16
mov ah, 4ch
int 21h
code e ...
Posted by Dragonfly on Sun, 07 Nov 2021 16:55:29 -0800
The performance of a murder case caused by an instruction optimization is crazy by 50%. Lang becomes stupid after using the - ffast math option
https://www.cnblogs.com/bbqzsl/p/15510377.html
Recently, during optimization, some functions were bench tested on different compilation platforms . Found a lot of problems.
Now let's share one of the questions.
1 typedef float MAFloat;
2
3 MAFloat sma(const MAFloat* seq, const int cnt, const int N, const int M)
4 {
5 const MAFloat C ...
Posted by LordPsyan on Thu, 04 Nov 2021 06:24:53 -0700
Compilation of the third experiment
1. Subprogram design Complete exercise 6.9. The scores of 10 students are 76, 69, 84, 90, 73, 88, 99, 63100 and 80 respectively. Trial compilation The number of people with 60-69 points, 70-79 points, 80-89 points, 90-99 points and 100 points is calculated by subprogram respectively Store in units S6, S7, S8, S9, and S10.
DSEG SEGMENT
GRADE DB ...
Posted by feeta on Sun, 05 Apr 2020 10:38:22 -0700
Wang Shuang assembly language second edition curriculum design 2
Wang Shuang course design of assembly language 2
The most important thing to master a programming language is practice. Wang Shuang's teacher's Curriculum Design II, if you write 400 to 800 lines of code completely, and complete this curriculum design independently, you will be proficient in 16 bit a ...
Posted by Logical1 on Sun, 19 Jan 2020 22:13:48 -0800
Sword finger offer 43, 44: rotate string left, flip word order column
43. Title Description
In assembly language, there is a shift instruction called loop left shift (ROL). Now there is a simple task, which is to simulate the operation result of this instruction with a string. For a given character sequence S, please rotate it to the left after K-bit sequence output. For example, the character s ...
Posted by danago on Tue, 07 Jan 2020 07:28:37 -0800
Using X64 assembly language to write high performance SM3 hash algorithm code
Description of C language style operators used in this paper:
=Assignment
==Equal to
< less than
< = less than or equal to
~Reverse by position
&Bitwise AND
^Bitwise XOR
|Bitwise OR
< cycle left
>>>Cycle right
4.1 initial value There's nothing to say about this. Just copy the standard documents:
7380166f 4914b2 ...
Posted by nEmoGrinder on Tue, 17 Dec 2019 20:08:40 -0800
Read the operating system boot program roughly
[1] linux 0.11 bootsect.s
Copy the contents of the memory segment [0x07c00, 0x07e00) to the memory segment [0x90000, 0x90200],
Then jump to 0x9000 segment to execute the program that is not executed after bootdetect. S.
The subsequent program of bootsec. S will start the setup.s program in the disk (floppy disk) into ...
Posted by phpbrat on Sun, 03 Nov 2019 13:58:32 -0800
STM32F1+uCOSii migration
0.uCOSII introduction
0.0 uCOSii background
μ C/OS-II is a portable, curable, tailorable, preemptive multitask real-time kernel provided by Micrium company. It is suitable for a variety of microprocessors, microcontrollers and digital processing chips (which have been transplanted to more than 1 ...
Posted by please_explain on Sat, 26 Oct 2019 06:30:25 -0700