comparison gen_x86.c @ 550:96489fb27dbf

Apart from the Z80 core, BlastEm now supports 32-bit x86
author Michael Pavone <pavone@retrodev.com>
date Wed, 19 Feb 2014 00:22:27 -0800
parents 0bf5e6b672fe
children f9431cb3a39c 8e395210f50f
comparison
equal deleted inserted replaced
549:32da1e0d5e55 550:96489fb27dbf
1754 disp >>= 8; 1754 disp >>= 8;
1755 *(out++) = disp; 1755 *(out++) = disp;
1756 disp >>= 8; 1756 disp >>= 8;
1757 *(out++) = disp; 1757 *(out++) = disp;
1758 } else { 1758 } else {
1759 printf("%p - %p = %lX\n", dest, out + 6, disp); 1759 printf("%p - %p = %lX\n", dest, out + 6, (long)disp);
1760 return NULL; 1760 return NULL;
1761 } 1761 }
1762 } 1762 }
1763 return out; 1763 return out;
1764 } 1764 }
1779 disp >>= 8; 1779 disp >>= 8;
1780 *(out++) = disp; 1780 *(out++) = disp;
1781 disp >>= 8; 1781 disp >>= 8;
1782 *(out++) = disp; 1782 *(out++) = disp;
1783 } else { 1783 } else {
1784 printf("%p - %p = %lX\n", dest, out + 6, disp); 1784 printf("%p - %p = %lX\n", dest, out + 6, (long)disp);
1785 return NULL; 1785 return NULL;
1786 } 1786 }
1787 } 1787 }
1788 return out; 1788 return out;
1789 } 1789 }
1811 *(out++) = disp; 1811 *(out++) = disp;
1812 disp >>= 8; 1812 disp >>= 8;
1813 *(out++) = disp; 1813 *(out++) = disp;
1814 } else { 1814 } else {
1815 //TODO: Implement far call??? 1815 //TODO: Implement far call???
1816 printf("%p - %p = %lX\n", fun, out + 5, disp); 1816 printf("%p - %p = %lX\n", fun, out + 5, (long)disp);
1817 return NULL; 1817 return NULL;
1818 } 1818 }
1819 return out; 1819 return out;
1820 } 1820 }
1821 1821