Changeset 110 in xtideuniversalbios for trunk/Assembly_Library/Inc/Emulate.inc
- Timestamp:
- Feb 22, 2011, 7:06:50 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Emulate.inc
r94 r110 236 236 push dx 237 237 push bx 238 ; SP before first push should be pushed here238 push bx ; SP before first push should be pushed here 239 239 push bp 240 240 push si … … 263 263 pop si 264 264 pop bp 265 ; Old SP should be skipped here265 pop di ; Skip SP 266 266 pop bx 267 267 pop dx … … 318 318 leave 319 319 %endif 320 %endmacro321 322 323 ;--------------------------------------------------------------------324 ; eENTER_STRUCT325 ; Parameters:326 ; %1: Number of bytes to reserve from stack327 ; Returns:328 ; SS:BP: Ptr to beginning of struct reserved from stack329 ; Corrupts registers:330 ; FLAGS331 ;--------------------------------------------------------------------332 %macro eENTER_STRUCT 1333 push bp334 sub sp, %1335 mov bp, sp336 %endmacro337 338 ;--------------------------------------------------------------------339 ; eLEAVE_STRUCT340 ; Parameters:341 ; %1: Number of bytes reserved with eENTER_STRUCT342 ; Returns:343 ; BP: What it was before eENTER_STRUCT344 ; Corrupts registers:345 ; FLAGS346 ;--------------------------------------------------------------------347 %macro eLEAVE_STRUCT 1348 add sp, %1349 pop bp350 320 %endmacro 351 321
Note:
See TracChangeset
for help on using the changeset viewer.