Traditional Culture Encyclopedia - Traditional festivals - Help write an assembler, draw a flow chart, input a digit from the keyboard, judge parity, and output a symbol on the screen, if it is strange.
Help write an assembler, draw a flow chart, input a digit from the keyboard, judge parity, and output a symbol on the screen, if it is strange.
Received number
I
Judging odd numbers and even numbers-odd numbers
Me, me.
I even count me.
Show 0 I
I
Display 1
code segment
Suppose cs:code
Start:
mov ah,00h
int 16h
sub al,30h
mov ah,0
mov bl,2
div bl
cmp ah,0
jz out0
jmp out 1
out0:
mov dl,30h
2h movie
int 2 1h
Jmp exit
out 1:
mov dl,3 1h
2h movie
int 2 1h
Exit:
mov ax,4c00h
int 2 1h
End of code
End start
- Previous article:A short story about morality
- Next article:Heshan tourist attractions Jiangmen Heshan tourist attractions
- Related articles
- What does scm mean on a car
- Magpie climbing plum symbolizes a picture.
- What tea sets are suitable as gifts for parents?
- How to tie a small broom to sweep the ceiling
- New breakthrough in liver cancer treatment! Proton radiotherapy does not harm the liver.
- How to detect harmful gases? What are the methods?
- What are the gaps between China's automobile industry and foreign automobile industry?
- How does the average e-commerce platform operate?
- Why are villas sinking now? There is plenty of light and sunshine in the basement. Is this a trend?
- Where does Shandong Weihai Express send to Hubei?