make macro for push imm/pop dst

git-svn-id: svn://kolibrios.org@3598 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse
2013-06-04 11:14:37 +00:00
parent e80ec77b74
commit a77e7ee15d
25 changed files with 109 additions and 164 deletions

View File

@@ -117,3 +117,16 @@ macro list_del entry
mov [ecx+list_fd], edx
}
; MOV Immediate.
; Useful for things like movi eax,10:
; shorter than regular mov, but slightly slower,
; do not use it in performance-critical places.
macro movi dst, imm
{
if imm >= -0x80 & imm <= 0x7F
push imm
pop dst
else
mov dst, imm
end if
}