-
I tried to count it in the 3*3 grid before, and it took more than 40 seconds, and then I used the same calculation method to use the 4*4 grid, and the result was no response.
3*3 takes 40 seconds, 4*4 takes decades.
This palace grid has a formula for filling in the numbers.,The even palace grid and the odd palace grid are not the same.,What is the specific, you can search for it again.。
-
First of all, I'm going to help you explain the procedure.
INT 21 is a feature provided by the DOS system.
Each function of DOS has a number, and if we want to use this function we just put the function number in AH and call int 21h, like this.
mov ah, 1
int 21h
Purpose: Enter a character, which is equivalent to scanf in c
However, some functions require certain parameters, and there is a return value after the call, how to use these functions, the following ** has a specific description of each function, what do you not understand.
-
The first one is put a, which is subtracted from the others, and there is a borrowed exchange.
-
;Displays the string.
mwrite macro text:reqlocal string
datastring byte text,0
codeinvoke writestring,offset stringendm
stackdata
codemain proc
mwrite "Hello! So-and-so, goodbye! This sentence"
exitmain endp
Displays a 0 ending string.
Parameter pstr = the start address of the string.
Return: None. writestring proc uses ax dx si ,pstr:ptr byte
pushfmov si,pstr
l0:mov dl,byte ptr [si]inc si
cmp dl,0
je l1mov ah,2
int 21h
jmp l0
l1:popf
retwritestring endp
end main
-
assume cs:code
data segment
str1 db 'Hello! So-and-so, goodbye! ',0ah,'$'
data ends
code segment
start:
mov ax,data
mov ds,ax
mov ah,9
lea dx,str1
int 21h
mov ah,4ch
int 21h
code ends
end start
-
What can't be compiled?
It's a compilation that didn't work.
Don't get an error message?
0fendh, what is it?
Some exe files are encrypted (packed), you can't see it directly, you have to unshell it first. >>>More
<> method steps: 1. Open VC2010 (or other C language compilers), create a new project - select Win32 as the console application - name - OK. >>>More
Form on the total number of days to put text1 text2 text3 command1 private sub command1 click(). dim daycount as long day of the week on the first day. >>>More
Upstairs ** is so long, it's still simple?
Speechless. I wrote one for you, this is really simple and practical, hehe! >>>More
There is no contradiction, the types are matched. Added a note to your **, if you still don't understand, you can ask me again! >>>More