Now in the study of the Assembly, it feels very interesting. , I will write down the learning things, as a later can learn notes ~
The loop instruction is in the form of a loop designator, which takes two steps when the CPU executes the Loop command
1: (CX) = (CX)-1
2: Determine the value in CX, not zero to go to the label to execute, if zero, then execute down
Show all registers
Format:-r function: display the value of the internal registers of the CPU in hexadecimal format; display the value of each flag bit (except TF) of the sign register in symbolic form; disassembles the memory content referred to by CS: IP into an instruction, which can be considered as the instruction to be executed. For example:
-R press ENTERAx = 0000 BX = 0000 Cx = 0000 dx = 0000 sp = ffee BP = 0000 Si = 0000 di = 0000DS = 0af0 es
PHP$cx= "";if(!Empty($_get["CX"]) //To determine if the value passed by get is not NULL, then assign the passed value to the variable $cx{$cx=$_get["CX"]; }? >Key Words:value= ""/>//Leave the user input keyword in the text box ' text 'PHPinclude(".. /fzl/czy.class.php ");$db
1. Start the Zookeeper server./zookeeper-server-start.sh/opt/cx/kafka_2.11-0.9.0.1/config/zookeeper.properties2. Modify the Broker-1,broker-2 configurationbroker.id=1listeners=plaintext://:9093 # The port the socket server listens onport=9093log.dirs=/opt/cx/kafka/ Kafka-logs-1broker.id=2listeners=plaintext://:9094# the port the socket server listens onport=9094log.dirs=/opt/
loopback, but affect 6 flag bitsB, the source operand of the string comparison instruction is the meiosis, the purpose operand is the number of pieces.5. Serial Search Instructions(1) instruction format: SCAS SRC,DSTSCASB ; Al-es: [di],di SCASW ; Al-es: [di],di(2) Instruction function:With the accumulator al or Ax as the meiosis, with an element of the string see, no return results, single impact 6 flag bitsSecond, string repeat prefix 1, instruction format:REP ; If
]);//planes[0] = magnitudeMat MagI = planes[0];MagI + = Scalar::all (1); Switch to logarithmic scaleLog (MagI, MagI);Crop the spectrum, if it has an odd number of rows or columnsMagI = MagI (Rect (0, 0, Magi.cols -2, Magi.rows 2));Rearrange the quadrants of Fourier image so, the origin is at the image centerint cx = MAGI.COLS/2;int cy = MAGI.ROWS/2;Mat q0 (MagI, Rect (0, 0, CX, CY)); Top-left-create a ROI
dataJZ sound_updateMOV ah,0 set ah for Get keyint 16H; BIOS CallPop DXPop CXPop bxRet;******* -------- *******Sound_update:CMP sound_flag,0 Check for sound on????JZ Get_keyinput_loop Branch out if sound offmov cx,sound_time_m else check for sound updateMOV ax,sound_time_lCall Test_current_time-it time for update??JC Get_keyinput_loop; branch if not timeMOV bx,sound_tablemov ax,[bx]; Get Next sound update valueor Ax,ax;?? End of sound??JZ Turn_sound_o
The following features are implemented with Opencv+python:1) Get real-time video, decompose frame frequency;2) The video to do two value processing;3) The Video filter processing (to remove noise, to obtain the exact number of profiles);4) identify image contour;5) Calculate the centroid;6) depict the dynamic change curve of centroid;#-*-Coding:utf-8-*-"" "Created on Thu Apr 12:10:23 2018@author:irene" "" Import NumPy as Npimport Matplotlib.pyplot a s pltfrom scipy.interpolate import spline impo
); Scaling Controls}}Finally add the Windows message response function OnSize:void Cmydlg::onsize (UINT nType, int cx, int cy)//Cx,cy is the length and width of the current dialog box{Cdialog::onsize (NType, CX, CY);Todo:add your message Handler code hereif (ntype!=size_minimized)// judgment window is not minimized, because after the window is minimized, the leng
1. Click on the dialog box, in the properties: border to resizing, can be stretchedMaximize Box changed to TrueMinimize Box changed to TrueVertical ScrollBar to True to show scroll barsTitleBar change to False, the title disappears2. The dialog box displays full screen:OnInitDialog (), that is, the initial display state is full screenint cx,cy;CX = GetSystemMetrics (Sm_cxscreen);cy = GetSystemMetrics (Sm_cy
Getmouseevent (nmouseinfo.pt)
End If
End Select
End If
End If
If Cancel Then
MouseHookProc = 1
Else
MouseHookProc = CallNextHookEx (Hmousehook, Icode, WParam, LParam)
End If
Exit Function
Due
End Function
Public Sub Uninstallmousehook ()
If hmousehook Call UnhookWindowsHookEx (Hmousehook)
End If
Hmousehook = 0
End Sub
Public Function vkpress (Vkcode as Long) as Boolean
If (Getasynckeystate (Vkcode) and h8000) Vkpress = True
Else
Vkpress = False
End If
End Function
Public Function getm
name [] = "china"; format.V. Functions1. void Fuction1 (const int r); // The const value is passed for the parameter, meaning that the initial value of the variable cannot be changed by the function.2. const int Fuction1 (int); // The returned const value indicates that the initial value of the variable in the returned original function cannot be modified, but the variable returned by the function by value is copied, it makes no sense if it can be modified. It can be assigned to any const or no
actually illustrates everything. And it eliminates many misconceptions:(1) The first misconception is that the Windows RT and Win32 are completely separate from INFOQ. This is due to a critical architecture map published by Microsoft, in which Windows RT and Windows subsystems are arranged side by side. It's ridiculous that Windows RT is actually based on the Windows subsystem. First, Windows RT is completely COM-based, and Windows RT takes advantage of some of the existing Win32 APIs, while th
precreatewindow or oncreate function, it does not work.
The correct method is to reload ongetminmaxinfo in mainframe and set the window size according to the screen resolution.
// Set the frame size based on the screen resolution
Voidcmainframe: ongetminmaxinfo (minmaxinfo * lpmmi)
{
// Todo: add the message processing program code and/or call the default value here
Int Cx = getsystemmetrics (sm_cxscreen );
Int Cy = getsystemmetrics (sm_cyscreen );
L
.
For functions
1. Void fuction1 (const int R); // The const value is passed for the parameter, meaning that the initial value of the variable cannot be changed by the function.
2. const int fuction1 (INT); // The returned const value indicates that the initial value of the variable in the returned original function cannot be modified, but the variable returned by the function by value is copied, it makes no sense if it can be modified. It can be assigned to any const or non-const type variable
daffodils between 999@ Echo off setlocal enabledelayedexpansion for/L % A in (, 9) Do (for/L % B in (, 9) do (for/L % C in (0, 1, 9) Do (Set/A ver1 = % A % B % C, ver2 = % A * % A + % B * % B + % C * % C if! Ver1! =! Ver2! Echo! Ver1 !))) Pause> NUL
Output daffodils in assembly language
Stack segment StackDWP 256 DUP (?) Stack ends Data Segment Buf DB 3 DUP (?) Data ends code segment assume Cs: code, DS: data, SS: Stack FJ proc near push CX push DX
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.