Quantcast
Channel: Assembly Language Stack and Subroutine - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Alexey Frunze for Assembly Language Stack and Subroutine

Every push decrements sp by the size of the pushed element. Every pop increments sp similarly.So, you begin with sp = 100h, then you subtract 2 with push axsubtract 2 with push axsubtract 2 with call...

View Article



Answer by Ville Krumlinde for Assembly Language Stack and Subroutine

After mov bp,sp in the subroutine, the value of the hex value in bp is 00F8Yes, because sp is initialized with 100h then two word sized arguments are pushed (push ax), the subroutine is called which...

View Article

Assembly Language Stack and Subroutine

I'm really confused as to how stack pointers and byte pointers work. Here is the segment of code the problem is referencing: .datav1 db 'AB'v2 db 'CD'v3 db 'EF .codestart: mov ax,@data mov ds,ax mov...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>