add_and_subtract.py (6083:c669a6f8fa9e) add_and_subtract.py (6084:cb751de62299)
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 313 unchanged lines hidden (view full) ---

322{
323 rdip t7
324 limm t2, imm
325 ldst t1, seg, riprel, disp
326 sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
327 st t1, seg, riprel, disp
328};
329
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 313 unchanged lines hidden (view full) ---

322{
323 rdip t7
324 limm t2, imm
325 ldst t1, seg, riprel, disp
326 sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
327 st t1, seg, riprel, disp
328};
329
330def macroop SBB_LOCKED_M_I
331{
332 limm t2, imm
333 ldstl t1, seg, sib, disp
334 sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
335 stul t1, seg, sib, disp
336};
337
338def macroop SBB_LOCKED_P_I
339{
340 rdip t7
341 limm t2, imm
342 ldstl t1, seg, riprel, disp
343 sbb t1, t1, t2, flags=(OF,SF,ZF,AF,PF,CF)
344 stul t1, seg, riprel, disp
345};
346
330def macroop SBB_M_R
331{
332 ldst t1, seg, sib, disp
333 sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
334 st t1, seg, sib, disp
335};
336
337def macroop SBB_P_R
338{
339 rdip t7
340 ldst t1, seg, riprel, disp
341 sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
342 st t1, seg, riprel, disp
343};
344
347def macroop SBB_M_R
348{
349 ldst t1, seg, sib, disp
350 sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
351 st t1, seg, sib, disp
352};
353
354def macroop SBB_P_R
355{
356 rdip t7
357 ldst t1, seg, riprel, disp
358 sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
359 st t1, seg, riprel, disp
360};
361
362def macroop SBB_LOCKED_M_R
363{
364 ldstl t1, seg, sib, disp
365 sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
366 stul t1, seg, sib, disp
367};
368
369def macroop SBB_LOCKED_P_R
370{
371 rdip t7
372 ldstl t1, seg, riprel, disp
373 sbb t1, t1, reg, flags=(OF,SF,ZF,AF,PF,CF)
374 stul t1, seg, riprel, disp
375};
376
345def macroop NEG_R
346{
347 sub reg, t0, reg, flags=(CF,OF,SF,ZF,AF,PF)
348};
349
350def macroop NEG_M
351{
352 ldst t1, seg, sib, disp

--- 12 unchanged lines hidden ---
377def macroop NEG_R
378{
379 sub reg, t0, reg, flags=(CF,OF,SF,ZF,AF,PF)
380};
381
382def macroop NEG_M
383{
384 ldst t1, seg, sib, disp

--- 12 unchanged lines hidden ---