Showing posts with label System Programming Programs (8086). Show all posts
Showing posts with label System Programming Programs (8086). Show all posts

Write a Program to Decrements a 16-bit number Using 8086(System Programming)




Decrements a 16-bit number:

include “emu8086.inc”
ORG 100h
MOV AX, 0005H
DEC AX
CALL PRINT_NUM
RET
DEFINE_PRINT_NUM
END


Output:

Before Execution:   After Execution:

AX = 0005H            AX = 0004H

Write a Program to Decrements an 8-bit number using 8086 (System Programming)



 Decrements an 8-bit number :

include “emu8086.inc”
ORG 100h
MOV AL, 05H
DEC AL
CALL PRINT_NUM
RET .
DEFINE_PRINT_NUM
END


Output:

Before Execution:   After Execution:

AL = 05H                AL = 04H

Write a Program to Increment an 16-bit number Using 8086 (System Programming)



Increment an 16-bit Number:


include “emu8086.inc”
ORG 100h
MOV AX, 0005H
INC AX
CALL PRINT_NUM
RET
DEFINE_PRINT_NUM
END



Output :


Before Execution:     After Execution:

AX = 0005H               AX = 0006H

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀