blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
bd94da38142ee47e064bd44c90b64b309961f799
527739ed800e3234136b3284838c81334b751b44
/include/RED4ext/Types/generated/game/ScriptStatusEffectListener.hpp
11d9e6b97db627ed4ca5eb768aa381a0bfa8edca
[ "MIT" ]
permissive
0xSombra/RED4ext.SDK
79ed912e5b628ef28efbf92d5bb257b195bfc821
218b411991ed0b7cb7acd5efdddd784f31c66f20
refs/heads/master
2023-07-02T11:03:45.732337
2021-04-15T16:38:19
2021-04-15T16:38:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
678
hpp
ScriptStatusEffectListener.hpp
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/Types/generated/game/IStatusEffectListener.hpp> namespace RED4ext { namespace game { struct ScriptStatusEffectListener : game::IStatusEffectListener { static constexpr const char* NAME = "gameScriptStatusEffectListener"; static constexpr const char* ALIAS = "ScriptStatusEffectListener"; uint8_t unk40[0x48 - 0x40]; // 40 }; RED4EXT_ASSERT_SIZE(ScriptStatusEffectListener, 0x48); } // namespace game using ScriptStatusEffectListener = game::ScriptStatusEffectListener; } // namespace RED4ext
74ef2d9c6b9938c78f7cdf219c26b37c05481d8d
0115b2bf82596f26a9ca09c2a017f3bdf9c4aad2
/rgbLed/rgbLed.ino
2a2b3514aa9abd4921083fbd52c77f4d76f3e861
[]
no_license
kadu/TheGarageSandbox
6d28f3b87a6c5e7e8bcffafe1564a97045473be0
1036bf3f6734ff0c9a15d455d131c0e548105a4f
refs/heads/master
2020-12-26T02:51:51.493677
2014-10-28T13:24:06
2014-10-28T13:24:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,170
ino
rgbLed.ino
#include <SPI.h> #include <Ethernet.h> #include "restArdueasy.h" // Enter a MAC address and IP address for your controller below. // The IP address will be dependent on your local network: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192,168,1,177); EthernetServer server(80); const int R_PIN = 3; const int G_PIN = 5; const int B_PIN = 6; void setup() { pinMode(R_PIN, OUTPUT); pinMode(G_PIN, OUTPUT); pinMode(B_PIN, OUTPUT); beginSerial(); beginEthernet(mac, ip, server); bind ("GET", "/rgb", &setRGBValue); } void loop() { restLoop(server); } void setRGBValue(EthernetClient client, RequestParameter p) { Serial.println(map(p.value[0],48,57,0,255)); if(p.name=="R") analogWrite(R_PIN, map(p.value[0],48,57,0,255)); if(p.name=="G") analogWrite(G_PIN, map(p.value[0],48,57,0,255)); if(p.name=="B") analogWrite(B_PIN, map(p.value[0],48,57,0,255)); httpOK(client); } void httpOK(EthernetClient client){ client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection: close"); // the connection will be closed after completion of the response client.println(); }
f1ea4df4626b1dd084fc0e47258fcdb03de63c09
5644fb2186bbc42307fe805851ace3bb1bb150f3
/ApproximateComputing/gem5/ApproximateHardware/Multipliers/Exact/Multiplier32_32Exact.cpp
7f6e0f79b20ac828b9380fdf76ad538cdf615c15
[]
no_license
embeddedlabsiu/adaptive-approximate-computing
e5d4339bf917f98c91520d819a8e7a657db2213b
d0ac88595667b3e7160bc2351f823972e9a7461e
refs/heads/master
2022-09-29T12:34:10.046149
2020-05-30T23:16:01
2020-05-30T23:16:01
263,443,409
3
0
null
null
null
null
UTF-8
C++
false
false
212,161
cpp
Multiplier32_32Exact.cpp
#include<stdlib.h> #include<stdio.h> #include<stdint.h> #include<time.h> #include "ExactMultiplierLibrary.h" #include "../Multipliers.h" //#define LogAccurateMultiplier32 ( 1 ) #if defined ( LogAccurateMultiplier32 ) #include "LoggerFactory.h" #include "LoggingHandler.h" #endif static void multiplier32_32_accurate_top ( int* clk, int* rst_n, int* a1_i, int* b1_i, int* p_o){ int a1_w[32]; int b1_w[32]; int n1569; INV_X1( &b1_i[0], &n1569); int n1760; DFFS_X1( &n1569, rst_n, clk, &n1760, &b1_w[0]); int n1633; INV_X1( &a1_i[0], &n1633); int n4204; INV_X2( &b1_w[0], &n4204); int n2313; INV_X2( &n4204, &n2313); int n5859; DFFS_X1( &n1633, rst_n, clk, &n5859, &a1_w[0]); int n1627; INV_X1( &a1_i[6], &n1627); int n2615; INV_X4( &n4204, &n2615); int n2561; INV_X2( &a1_w[0], &n2561); int nullval0; DFFS_X1( &n1627, rst_n, clk, &nullval0, &a1_w[6]); int n1631; INV_X1( &a1_i[2], &n1631); int n2687; INV_X2( &n2561, &n2687); int n5492; BUF_X4( &a1_w[6], &n5492); int n5317; INV_X4( &n2561, &n5317); int n2145; NAND2_X2( &n5492, &n2615, &n2145); int n5506; BUF_X2( &n2687, &n5506); int n3476; INV_X1( &n2145, &n3476); int n5254; BUF_X2( &a1_w[6], &n5254); int n1601; NAND2_X1( &n2687, &n2313, &n1601); int nullval1; DFFS_X1( &n1601, rst_n, clk, &nullval1, &p_o[0]); int n5856; DFFS_X1( &n1631, rst_n, clk, &n5856, &a1_w[2]); int n1567; INV_X1( &b1_i[2], &n1567); int n2575; INV_X2( &a1_w[2], &n2575); int nullval2; DFFS_X1( &n1567, rst_n, clk, &nullval2, &b1_w[2]); int n1632; INV_X1( &a1_i[1], &n1632); int n4785; INV_X4( &n2575, &n4785); int n5024; INV_X4( &n2575, &n5024); int n5502; BUF_X2( &n5024, &n5502); int n2422; NAND2_X2( &n2615, &n5024, &n2422); int n2464; INV_X2( &b1_w[2], &n2464); int n5861; DFFS_X1( &n1632, rst_n, clk, &n5861, &a1_w[1]); int n1568; INV_X1( &b1_i[1], &n1568); int n5505; INV_X2( &n5861, &n5505); int n2424; INV_X1( &n2422, &n2424); int n5684; INV_X4( &n2464, &n5684); int n5030; BUF_X8( &a1_w[1], &n5030); int n5683; INV_X4( &n2464, &n5683); int n2508; OR2_X2( &n5859, &n5861, &n2508); int n1898; NAND2_X2( &n5492, &n5684, &n1898); int n2144; NAND2_X2( &n1898, &n2145, &n2144); int n1945; NAND2_X4( &n5030, &n5684, &n1945); int n2400; OR2_X1( &n2464, &n2561, &n2400); int n5028; NAND2_X2( &n2400, &n2422, &n5028); int n5020; INV_X1( &n1945, &n5020); int n2426; NAND2_X2( &n5684, &n5024, &n2426); int n1878; NOR2_X2( &n2426, &n1601, &n1878); int n3196; NOR2_X2( &n5684, &n2313, &n3196); int nullval3; DFFS_X1( &n1568, rst_n, clk, &nullval3, &b1_w[1]); int n1566; INV_X1( &b1_i[3], &n1566); int n5711; AND2_X1( &n2615, &n5030, &n5711); int n2402; INV_X1( &n2508, &n2402); int n4205; INV_X2( &b1_w[1], &n4205); int n5027; INV_X2( &n1878, &n5027); int n5698; INV_X2( &n4205, &n5698); int n5854; DFFS_X1( &n1566, rst_n, clk, &n5854, &b1_w[3]); int n1564; INV_X1( &b1_i[5], &n1564); int n5712; AND2_X1( &n5698, &n5506, &n5712); int n5029; NAND2_X1( &n5028, &n5027, &n5029); int n5026; NAND2_X1( &n5024, &n5698, &n5026); int n5680; BUF_X1( &b1_w[3], &n5680); int n3674; INV_X4( &n4205, &n3674); int n4346; BUF_X1( &b1_w[3], &n4346); int n4188; INV_X2( &n5854, &n4188); int n5405; BUF_X1( &b1_w[3], &n5405); int n1833; NAND2_X2( &n4346, &n5030, &n1833); int n1665; AND2_X2( &n5030, &n3674, &n1665); int n5851; DFFS_X1( &n1564, rst_n, clk, &n5851, &b1_w[5]); int n1565; INV_X1( &b1_i[4], &n1565); int n5713; NAND2_X1( &n5712, &n5711, &n5713); int n5709; INV_X4( &n5851, &n5709); int n2404; NAND2_X1( &n4188, &n5024, &n2404); int n2511; NOR2_X1( &b1_w[3], &b1_w[5], &n2511); int n5681; BUF_X2( &b1_w[5], &n5681); int n5715; XNOR2_X1( &n1665, &n5029, &n5715); int n2398; NAND2_X2( &n5681, &n5030, &n2398); int n1944; NAND2_X2( &n5492, &n4188, &n1944); int n2300; NAND2_X2( &n5028, &n1665, &n2300); int n1880; INV_X1( &n2300, &n1880); int n5034; NAND2_X4( &n5317, &n5405, &n5034); int n2420; NOR2_X1( &n1945, &n5034, &n2420); int n2411; NAND2_X2( &n2687, &n5681, &n2411); int n2513; NAND3_X2( &n5684, &n5681, &n4188, &n2513); int n2503; NAND2_X2( &n1945, &n5034, &n2503); int n1670; INV_X1( &n2503, &n1670); int n5858; DFFS_X1( &n1565, rst_n, clk, &n5858, &b1_w[4]); int n1563; INV_X1( &b1_i[6], &n1563); int n5716; INV_X1( &n5713, &n5716); int n2990; NAND2_X1( &n5492, &n5681, &n2990); int n2445; NAND2_X1( &n5709, &n5502, &n2445); int n2399; INV_X2( &b1_w[4], &n2399); int n5021; NAND2_X4( &n5027, &n2300, &n5021); int n1879; NOR2_X1( &n2513, &n2508, &n1879); int n1877; NOR2_X1( &n1879, &n1878, &n1877); int n2401; OR2_X1( &n2511, &n5858, &n2401); int n2460; AND2_X1( &n2464, &n2399, &n2460); int n2407; OR2_X1( &n5858, &n5859, &n2407); int n5710; INV_X4( &n2399, &n5710); int n2480; AOI21_X1( &n2508, &n2401, &n2513, &n2480); int n2409; NAND2_X2( &n5710, &n5030, &n2409); int n5857; DFFS_X1( &n1563, rst_n, clk, &n5857, &b1_w[6]); int n1629; INV_X1( &a1_i[4], &n1629); int n5721; NAND2_X1( &n5715, &n5716, &n5721); int n5035; NOR2_X1( &n5021, &n5020, &n5035); int n5033; NAND2_X1( &n5020, &n5021, &n5033); int n2997; NAND2_X1( &n5492, &b1_w[6], &n2997); int n2992; NAND2_X1( &n5492, &n5710, &n2992); int n2509; NOR2_X1( &b1_w[6], &n5709, &n2509); int n2482; INV_X1( &n2480, &n2482); int n2461; OAI21_X1( &n4205, &n2511, &n2460, &n2461); int n2450; NAND2_X1( &n5710, &n5024, &n2450); int n2436; NAND2_X1( &b1_w[6], &n5709, &n2436); int n2416; INV_X1( &n5021, &n2416); int n2505; OR2_X1( &n5857, &n2561, &n2505); int n2346; OR2_X1( &n5710, &n5709, &n2346); int n2465; NOR2_X1( &n5710, &n2313, &n2465); int n2500; NAND2_X2( &n2411, &n2409, &n2500); int n2434; NAND2_X2( &n2505, &n2398, &n2434); int n2413; NOR2_X1( &n2407, &n1833, &n2413); int n2502; NAND2_X2( &n1833, &n2407, &n2502); int n2408; AND2_X2( &n2503, &n2502, &n2408); int n1742; OR2_X1( &n2436, &n2508, &n1742); int n5708; INV_X2( &n5857, &n5708); int n2414; INV_X1( &n2502, &n2414); int n2410; CLKBUF_X1( &n2409, &n2410); int n2403; INV_X1( &n2401, &n2403); int n2469; NAND2_X1( &b1_w[6], &n5024, &n2469); int n2437; NAND2_X2( &b1_w[6], &n5030, &n2437); int nullval4; DFFS_X1( &n1629, rst_n, clk, &nullval4, &a1_w[4]); int n1630; INV_X1( &a1_i[3], &n1630); int n5041; OAI21_X1( &n5033, &n5035, &n5034, &n5041); int n5022; INV_X1( &n5035, &n5022); int n2466; OAI21_X1( &n2464, &n2511, &n2465, &n2466); int n2463; INV_X1( &n2461, &n2463); int n2456; INV_X1( &n2434, &n2456); int n3195; INV_X2( &a1_w[4], &n3195); int n5037; NOR2_X2( &n2414, &n2413, &n5037); int n2412; OAI21_X1( &n2500, &n2411, &n2410, &n2412); int n2458; OR2_X1( &n2505, &n2398, &n2458); int n2242; OR2_X2( &n2420, &n2413, &n2242); int n1876; NAND2_X1( &n2402, &n2403, &n1876); int n1875; NAND2_X2( &n1877, &n1876, &n1875); int n1874; NAND2_X2( &n2502, &n2500, &n1874); int n2479; NOR2_X2( &n1874, &n1670, &n2479); int n5497; INV_X8( &n3195, &n5497); int n2241; OAI21_X4( &n2408, &n5021, &n2242, &n2241); int n1705; AND2_X1( &n2434, &n2458, &n1705); int n2216; NOR2_X2( &n2479, &n2480, &n2216); int n2457; NOR2_X2( &n1880, &n1875, &n2457); int n5852; DFFS_X1( &n1630, rst_n, clk, &n5852, &a1_w[3]); int n1625; INV_X1( &a1_i[8], &n1625); int n5023; NAND2_X1( &n5033, &n5022, &n5023); int n3190; NAND2_X1( &n5683, &n5497, &n3190); int n2949; NAND2_X1( &n5497, &n5708, &n2949); int n2943; NAND2_X1( &n5497, &n5709, &n2943); int n2944; NAND2_X1( &n5497, &n5710, &n2944); int n2495; NAND2_X1( &n2479, &n5021, &n2495); int n2467; AND2_X2( &n2346, &n2466, &n2467); int n2459; INV_X1( &n2458, &n2459); int n2451; NAND2_X1( &n4346, &a1_w[3], &n2451); int n2446; NAND2_X1( &n5710, &a1_w[3], &n2446); int n5036; NAND2_X1( &n2615, &n5497, &n5036); int n2427; NOR2_X1( &n5037, &n1670, &n2427); int n2417; NOR2_X1( &n5037, &n2420, &n2417); int n2421; INV_X1( &n5037, &n2421); int n2423; NAND2_X1( &n3674, &a1_w[3], &n2423); int n2432; XNOR2_X2( &n2412, &n2241, &n2432); int n2940; NAND2_X2( &n4188, &n5497, &n2940); int n2725; INV_X4( &n5852, &n2725); int n2470; NAND2_X1( &n5681, &a1_w[3], &n2470); int n5025; NAND2_X1( &n2725, &n2615, &n5025); int n2223; INV_X1( &n2216, &n2223); int n2225; OAI21_X1( &n1705, &n2216, &n2457, &n2225); int n2224; NOR2_X1( &n1705, &n2457, &n2224); int n2287; NAND2_X1( &a1_w[3], &n5683, &n2287); int n2462; OAI211_X1( &n4785, &a1_w[3], &n5710, &n4346, &n2462); int n2471; NAND2_X1( &b1_w[6], &n2725, &n2471); int n2226; NOR2_X1( &n2457, &n2216, &n2226); int n2468; NOR2_X1( &n2463, &n2462, &n2468); int nullval5; DFFS_X1( &n1625, rst_n, clk, &nullval5, &a1_w[8]); int n1562; INV_X1( &b1_i[7], &n1562); int n5039; XOR2_X1( &n5037, &n5036, &n5039); int n5031; XOR2_X1( &n5026, &n5025, &n5031); int n5032; XOR2_X1( &n5023, &n5034, &n5032); int n2487; INV_X1( &n2495, &n2487); int n3184; AND2_X1( &n2451, &n2450, &n3184); int n3185; OR2_X1( &n2450, &n2451, &n3185); int n2453; XOR2_X1( &n2446, &n2445, &n2453); int n5018; INV_X1( &n5036, &n5018); int n2425; NOR2_X1( &n2424, &n2423, &n2425); int n2428; NOR2_X1( &n2421, &n2420, &n2428); int n2418; NAND2_X1( &n2417, &n2416, &n2418); int n2415; NOR2_X1( &n2421, &n1670, &n2415); int n2449; NOR3_X1( &n3196, &n2423, &n2575, &n2449); int n2545; NAND2_X1( &n2470, &n2469, &n2545); int n2532; INV_X1( &n2226, &n2532); int n2543; OR2_X2( &n2469, &n2470, &n2543); int n3182; INV_X1( &n2543, &n3182); int n2222; NAND2_X1( &n2224, &n2223, &n2222); int n1896; NAND2_X1( &n2225, &n2222, &n1896); int n2448; NOR2_X1( &n2404, &n2287, &n2448); int n2447; NAND2_X1( &n2287, &n2404, &n2447); int n1671; BUF_X2( &a1_w[8], &n1671); int n3173; NAND2_X2( &n2468, &n2467, &n3173); int n5860; DFFS_X1( &n1562, rst_n, clk, &n5860, &b1_w[7]); int n1561; INV_X1( &b1_i[8], &n1561); int n5719; NAND2_X1( &n5032, &n5031, &n5719); int n5718; NOR2_X1( &n5032, &n5031, &n5718); int n3685; AND2_X1( &b1_w[6], &n1671, &n3685); int n3677; AND2_X1( &n5680, &n1671, &n3677); int n3718; NAND2_X1( &n5683, &n1671, &n3718); int n3679; AND2_X1( &b1_w[5], &n1671, &n3679); int n3682; AND2_X1( &n5710, &n1671, &n3682); int n3469; NAND2_X1( &n5698, &n1671, &n3469); int n3186; INV_X1( &n3184, &n3186); int n5702; BUF_X4( &b1_w[7], &n5702); int n3187; OAI21_X1( &n2447, &n2449, &n2448, &n3187); int n5688; INV_X2( &n5860, &n5688); int n5038; XNOR2_X1( &n2426, &n2425, &n5038); int n2419; NAND2_X1( &n5021, &n2415, &n2419); int n2405; INV_X1( &n2447, &n2405); int n3181; INV_X1( &n2545, &n3181); int n2379; AND2_X1( &n5688, &n1671, &n2379); int n2178; NAND2_X2( &n5702, &n5497, &n2178); int n2472; NAND2_X1( &b1_w[7], &n4785, &n2472); int n2542; OR2_X2( &n2472, &n2471, &n2542); int n3175; AND2_X4( &n2543, &n2542, &n3175); int n2438; NAND2_X2( &n5688, &n2687, &n2438); int n1780; NAND2_X2( &n5030, &n5688, &n1780); int n1773; OR2_X1( &n1896, &n3476, &n1773); int n5007; NAND2_X1( &n3476, &n1896, &n5007); int n1894; INV_X1( &n5007, &n1894); int n2255; INV_X1( &n3718, &n2255); int n2306; NAND2_X1( &n5317, &n5688, &n2306); int n2547; NAND2_X1( &n5702, &n2725, &n2547); int n3675; NAND2_X1( &n2615, &n1671, &n3675); int n1781; OAI21_X1( &n5505, &n5702, &n5709, &n1781); int n2104; INV_X2( &n3173, &n2104); int n5855; DFFS_X1( &n1561, rst_n, clk, &n5855, &b1_w[8]); int n1560; INV_X1( &b1_i[9], &n1560); int n5040; XOR2_X1( &n5039, &n5038, &n5040); int n5725; OAI21_X1( &n5719, &n5718, &n5721, &n5725); int n5008; NAND2_X1( &n1773, &n5007, &n5008); int n3188; NAND2_X1( &n3186, &n3185, &n3188); int n3183; NOR2_X1( &n3182, &n3181, &n3183); int n2995; NAND2_X1( &n5492, &n5702, &n2995); int n2546; OR2_X1( &n5855, &n5856, &n2546); int n2510; NOR2_X1( &n5702, &n5708, &n2510); int n2544; NAND2_X1( &n2471, &n2472, &n2544); int n2474; AOI21_X1( &n3181, &n2543, &n3173, &n2474); int n2452; AOI21_X1( &n3184, &n3187, &n3185, &n2452); int n2454; OR2_X2( &n2438, &n2437, &n2454); int n2429; NAND2_X1( &n5018, &n5038, &n2429); int n2430; OAI22_X1( &n2428, &n2427, &n5038, &n5018, &n2430); int n2431; NAND2_X1( &n2419, &n2418, &n2431); int n2406; NOR2_X1( &n2405, &n2448, &n2406); int n5011; XNOR2_X1( &n3188, &n3187, &n5011); int n2254; INV_X1( &n3675, &n2254); int n5015; OAI21_X2( &n2429, &n2431, &n2430, &n5015); int n1793; BUF_X1( &b1_w[8], &n1793); int n5682; BUF_X4( &b1_w[8], &n5682); int n2455; NAND2_X2( &n2437, &n2438, &n2455); int n1702; XNOR2_X1( &n3173, &n3183, &n1702); int n1673; AND2_X2( &n2455, &n2454, &n1673); int n2576; NOR2_X1( &n2546, &n2547, &n2576); int n2212; NOR2_X1( &n1673, &n2459, &n2212); int n2210; NOR3_X1( &n2457, &n1673, &n2456, &n2210); int n2211; NAND2_X1( &n1673, &n2434, &n2211); int n2485; NAND2_X2( &n5030, &n5682, &n2485); int n2514; NOR4_X1( &n2511, &n2510, &n2509, &n2508, &n2514); int n5853; DFFS_X1( &n1560, rst_n, clk, &n5853, &b1_w[9]); int n1624; INV_X1( &a1_i[9], &n1624); int n5723; XNOR2_X1( &n5041, &n5040, &n5723); int n3826; AND2_X1( &b1_w[9], &n1671, &n3826); int n3758; AND2_X1( &n5682, &n1671, &n3758); int n3001; NAND2_X1( &n5492, &n5682, &n3001); int n2952; NAND2_X1( &n5497, &n5682, &n2952); int n2631; NAND2_X1( &b1_w[9], &n2725, &n2631); int n4285; BUF_X4( &b1_w[9], &n4285); int n2551; NAND2_X1( &b1_w[9], &n4785, &n2551); int n2552; NAND2_X1( &n5682, &n2725, &n2552); int n3172; NAND2_X1( &n2547, &n2546, &n3172); int n3174; NAND2_X2( &n2545, &n2544, &n3174); int n3171; INV_X1( &n2576, &n3171); int n2476; INV_X1( &n2474, &n2476); int n2475; NAND2_X1( &n2544, &n2542, &n2475); int n2522; XNOR2_X1( &n2453, &n2452, &n2522); int n2481; NAND2_X2( &n1742, &n2454, &n2481); int n2433; XNOR2_X1( &n2449, &n2406, &n2433); int n2209; INV_X1( &n2210, &n2209); int n2208; XNOR2_X1( &n2459, &n1673, &n2208); int n2504; NAND2_X4( &n2455, &n2434, &n2504); int n5012; NAND2_X1( &n2433, &n2432, &n5012); int n1895; NAND2_X2( &n5012, &n5015, &n1895); int n1893; NOR2_X1( &n2432, &n2433, &n1893); int n5013; INV_X1( &n1893, &n5013); int n2177; NAND2_X2( &n5682, &n5317, &n2177); int n2176; NOR2_X1( &n2177, &n1780, &n2176); int n1756; AND2_X1( &n2216, &n2212, &n1756); int n2214; NOR3_X1( &n2457, &n2216, &n2211, &n2214); int n2213; NOR2_X1( &n2214, &n1756, &n2213); int n5707; BUF_X2( &n4285, &n5707); int n2520; NAND2_X1( &b1_w[9], &n5030, &n2520); int n3000; NAND2_X1( &n5254, &n4285, &n3000); int n2529; BUF_X1( &n2504, &n2529); int n2489; INV_X1( &n2176, &n2489); int n2512; AOI21_X1( &n5682, &b1_w[9], &b1_w[7], &n2512); int n2215; NAND2_X1( &n2209, &n2208, &n2215); int n2499; NAND2_X1( &n1780, &n2177, &n2499); int n3223; NAND2_X1( &n5497, &n4285, &n3223); int n2484; OR2_X1( &n5853, &n5859, &n2484); int n2506; AOI21_X1( &n2485, &n2306, &n2484, &n2506); int nullval6; DFFS_X1( &n1624, rst_n, clk, &nullval6, &a1_w[9]); int n1626; INV_X1( &a1_i[7], &n1626); int n5729; NAND2_X1( &n5725, &n5723, &n5729); int n5014; NAND2_X1( &n5013, &n5012, &n5014); int n3867; AND2_X1( &b1_w[9], &a1_w[9], &n3867); int n3825; AND2_X1( &n5682, &a1_w[9], &n3825); int n3687; AND2_X1( &b1_w[6], &a1_w[9], &n3687); int n3686; AND2_X1( &b1_w[5], &a1_w[9], &n3686); int n3676; AND2_X1( &n5683, &a1_w[9], &n3676); int n3716; NAND2_X1( &n3674, &a1_w[9], &n3716); int n3680; AND2_X1( &n5710, &a1_w[9], &n3680); int n3681; AND2_X1( &n5680, &a1_w[9], &n3681); int n3176; AOI21_X1( &n3174, &n3175, &n3173, &n3176); int n3177; NAND2_X1( &n3172, &n3171, &n3177); int n2577; NOR2_X1( &n2552, &n2551, &n2577); int n2578; NAND2_X1( &n2552, &n2551, &n2578); int n2548; INV_X1( &n3172, &n2548); int n2550; NAND2_X1( &n3175, &n3171, &n2550); int n2525; INV_X1( &n2481, &n2525); int n2477; NAND2_X1( &n2476, &n2475, &n2477); int n2473; INV_X1( &n2475, &n2473); int n2441; INV_X1( &n2529, &n2441); int n2530; NAND2_X1( &n2499, &n2489, &n2530); int n2341; AND2_X1( &n5702, &a1_w[9], &n2341); int n2483; INV_X1( &n2499, &n2483); int n3482; NAND2_X2( &n2215, &n2213, &n3482); int n1917; NAND2_X2( &n2502, &n2499, &n1917); int n5009; NAND2_X2( &n1895, &n5013, &n5009); int n2507; NOR3_X1( &n2512, &n1781, &n2505, &n2507); int n5049; AOI21_X2( &n1894, &n1773, &n5009, &n5049); int n1779; AOI21_X1( &n1894, &n1773, &n5009, &n1779); int n1778; AOI21_X2( &n1894, &n1773, &n5009, &n1778); int n1769; OR2_X1( &n2485, &n2484, &n1769); int n3468; NAND2_X1( &a1_w[9], &n2615, &n3468); int n2253; INV_X1( &n3716, &n2253); int n1821; AOI21_X1( &n2512, &n5858, &n2513, &n1821); int n2217; INV_X1( &n3482, &n2217); int n2515; NAND2_X1( &n1821, &n2514, &n2515); int n2580; NOR2_X2( &n2577, &n2576, &n2580); int n3481; NAND2_X1( &n2522, &n3482, &n3481); int n2501; NAND2_X2( &n2485, &n2484, &n2501); int n2579; NAND2_X1( &n3172, &n2578, &n2579); int n2516; NOR2_X1( &n2507, &n2506, &n2516); int nullval7; DFFS_X1( &n1626, rst_n, clk, &nullval7, &a1_w[7]); int n1541; INV_X1( &b1_i[28], &n1541); int n5043; XNOR2_X1( &n5015, &n5014, &n5043); int n5045; XNOR2_X1( &n5009, &n5008, &n5045); int n3860; NAND2_X1( &n3826, &n3825, &n3860); int n3856; NOR2_X1( &n3826, &n3825, &n3856); int n3859; NAND2_X1( &n2341, &n3758, &n3859); int n3857; NOR2_X1( &n2341, &n3758, &n3857); int n3717; NOR2_X1( &n2254, &n3716, &n3717); int n3755; NAND2_X1( &n3687, &n2379, &n3755); int n3757; NOR2_X1( &n3687, &n2379, &n3757); int n3756; NAND2_X1( &n3686, &n3685, &n3756); int n3754; NOR2_X1( &n3686, &n3685, &n3754); int n3733; NAND2_X1( &n3682, &n3681, &n3733); int n3737; NAND2_X1( &n3680, &n3679, &n3737); int n3707; NAND2_X1( &n3677, &n3676, &n3707); int n3706; NOR2_X1( &n3677, &n3676, &n3706); int n3736; NOR2_X1( &n3680, &n3679, &n3736); int n3734; NOR2_X1( &n3682, &n3681, &n3734); int n5047; NOR2_X1( &n3482, &n2522, &n5047); int n3498; XOR2_X1( &n3469, &n3468, &n3498); int n3215; XNOR2_X1( &n3177, &n3176, &n3215); int n5255; BUF_X2( &a1_w[7], &n5255); int n2553; INV_X1( &n2578, &n2553); int n2549; AOI21_X1( &n2548, &n3171, &n3174, &n2549); int n2531; OR2_X1( &n2530, &n2529, &n2531); int n2526; NOR2_X1( &n2530, &n2525, &n2526); int n2528; NAND2_X1( &n2525, &n2530, &n2528); int n2517; NAND2_X2( &n2516, &n2515, &n2517); int n2490; NAND2_X1( &n2501, &n1769, &n2490); int n2491; NOR2_X1( &n2504, &n2483, &n2491); int n2488; NAND2_X1( &n2482, &n2525, &n2488); int n2478; NAND2_X1( &n2474, &n2473, &n2478); int n2439; AOI21_X1( &n2254, &n2481, &n2530, &n2439); int n2443; NOR2_X1( &n2530, &n2481, &n2443); int n2435; INV_X1( &n2530, &n2435); int n2322; NAND2_X2( &n2580, &n3175, &n2322); int n2268; INV_X1( &n3481, &n2268); int n3678; OAI21_X2( &n2253, &n2255, &n2254, &n3678); int n2252; INV_X1( &n3678, &n2252); int n2523; NAND2_X1( &n2443, &n2532, &n2523); int n3475; NAND2_X2( &a1_w[7], &n3674, &n3475); int n2121; INV_X1( &n3215, &n2121); int n2555; OAI21_X1( &n2549, &n2104, &n2550, &n2555); int n1918; NAND3_X4( &n2503, &n2501, &n2500, &n1918); int n2518; NOR3_X4( &n1918, &n1917, &n2504, &n2518); int n2321; AOI21_X2( &n2579, &n2580, &n3174, &n2321); int n1743; OR2_X1( &n2226, &n2528, &n1743); int n2267; INV_X1( &n5047, &n2267); int n5493; BUF_X2( &a1_w[7], &n5493); int n2536; NAND2_X1( &n2478, &n2477, &n2536); int n2266; OAI21_X1( &n2267, &n2268, &n1778, &n2266); int n2288; INV_X1( &n3475, &n2288); int nullval8; DFFS_X1( &n1541, rst_n, clk, &nullval8, &b1_w[28]); int n1542; INV_X1( &b1_i[27], &n1542); int n5504; NAND2_X1( &b1_w[28], &a1_w[3], &n5504); int n5463; NAND2_X1( &n5502, &b1_w[28], &n5463); int n5203; NAND2_X1( &b1_w[28], &n5505, &n5203); int n5048; NOR2_X1( &n2268, &n5047, &n5048); int n4824; NAND2_X1( &b1_w[28], &n5506, &n4824); int n3861; NAND2_X1( &n3860, &n3859, &n3861); int n3863; NOR2_X1( &n3857, &n3856, &n3863); int n3827; INV_X1( &n3856, &n3827); int n3759; INV_X1( &n3857, &n3759); int n3862; OAI21_X1( &n3755, &n3757, &n3756, &n3862); int n3858; NOR2_X1( &n3754, &n3757, &n3858); int n3738; INV_X1( &n3736, &n3738); int n3728; INV_X1( &n3734, &n3728); int n5066; XNOR2_X1( &n3718, &n3717, &n5066); int n3708; INV_X1( &n3706, &n3708); int n3688; INV_X1( &n3757, &n3688); int n3704; INV_X1( &n3754, &n3704); int n3683; NAND2_X1( &n3737, &n3733, &n3683); int n3727; OAI21_X2( &n3707, &n3678, &n3706, &n3727); int n3684; NOR2_X1( &n3734, &n3736, &n3684); int n3477; NOR2_X1( &n3476, &n3475, &n3477); int n3010; NAND2_X1( &n5493, &n4285, &n3010); int n2999; NAND2_X1( &n5493, &n5682, &n2999); int n3002; NAND2_X1( &n5493, &n5702, &n3002); int n2996; NAND2_X1( &n5255, &b1_w[6], &n2996); int n2991; NAND2_X1( &n5493, &n5710, &n2991); int n2993; NAND2_X1( &n5493, &n5680, &n2993); int n2554; NOR2_X1( &n2553, &n2577, &n2554); int n2533; NOR2_X1( &n2532, &n2531, &n2533); int n2527; AOI211_X1( &n2526, &n3675, &n2529, &n2530, &n2527); int n2666; AOI21_X4( &n2517, &n5021, &n2518, &n2666); int n2494; NOR2_X1( &n2490, &n2489, &n2494); int n2492; NAND2_X1( &n2489, &n2490, &n2492); int n2486; INV_X1( &n2490, &n2486); int n2440; INV_X1( &n2443, &n2440); int n2442; NOR2_X1( &n2435, &n2529, &n2442); int n3252; OAI21_X4( &n2321, &n2104, &n2322, &n3252); int n1943; NAND2_X2( &n5493, &n5683, &n1943); int n3212; NAND2_X2( &n1944, &n1943, &n3212); int n3485; XNOR2_X1( &n1898, &n3477, &n3485); int n1758; AND2_X1( &n3688, &n3755, &n1758); int n1738; AND2_X1( &n2442, &n2226, &n1738); int n3211; NOR2_X1( &n1943, &n1944, &n3211); int n2534; NAND2_X1( &n2527, &n1743, &n2534); int n3199; AOI22_X1( &n5698, &n5492, &n5493, &n2313, &n3199); int n2998; NAND2_X1( &n5493, &n5709, &n2998); int n3699; NOR2_X1( &n3002, &n3001, &n3699); int n1942; INV_X1( &n3212, &n1942); int n2320; INV_X2( &n3252, &n2320); int n1834; NAND2_X2( &n2144, &n2288, &n1834); int n3479; NOR2_X1( &n2534, &n2533, &n3479); int nullval9; DFFS_X1( &n1542, rst_n, clk, &nullval9, &b1_w[27]); int n1543; INV_X1( &b1_i[26], &n1543); int n5498; NAND2_X1( &b1_w[27], &n5497, &n5498); int n5462; NAND2_X1( &n2725, &b1_w[27], &n5462); int n5302; NAND2_X1( &n5502, &b1_w[27], &n5302); int n5054; XNOR2_X1( &n1778, &n5048, &n5054); int n4825; NAND2_X1( &b1_w[27], &n5505, &n4825); int n3864; AOI21_X1( &n3861, &n3863, &n3862, &n3864); int n3865; NAND2_X1( &n3858, &n3863, &n3865); int n3828; NAND2_X1( &n3827, &n3860, &n3828); int n3821; INV_X1( &n3862, &n3821); int n3820; INV_X1( &n3858, &n3820); int n3760; NAND2_X1( &n3759, &n3859, &n3760); int n3739; NAND2_X1( &n3738, &n3737, &n3739); int n3729; NAND2_X1( &n3728, &n3733, &n3729); int n3735; INV_X1( &n3727, &n3735); int n3719; INV_X1( &n5066, &n3719); int n3709; NAND2_X1( &n3708, &n3707, &n3709); int n3705; NAND2_X1( &n3704, &n3756, &n3705); int n3701; INV_X1( &n3699, &n3701); int n3866; AOI21_X2( &n3683, &n3684, &n3727, &n3866); int n3700; NAND2_X1( &n3002, &n3001, &n3700); int n3136; NAND2_X1( &n3000, &n2999, &n3136); int n3231; NAND2_X1( &n2996, &n2995, &n3231); int n3135; NOR2_X1( &n3000, &n2999, &n3135); int n3230; NOR2_X1( &n2996, &n2995, &n3230); int n3228; NOR2_X1( &n2998, &n2997, &n3228); int n3161; NAND2_X1( &n2993, &n2992, &n3161); int n3163; NAND2_X1( &n2991, &n2990, &n3163); int n3162; NOR2_X1( &n2991, &n2990, &n3162); int n3160; NOR2_X1( &n2993, &n2992, &n3160); int n2911; NAND2_X1( &b1_w[27], &n5506, &n2911); int n2568; XOR2_X1( &n2555, &n2554, &n2568); int n2493; NOR2_X1( &n2492, &n2491, &n2493); int n2496; NOR2_X1( &n2492, &n2488, &n2496); int n2498; OAI211_X1( &n2491, &n2486, &n2487, &n2488, &n2498); int n2521; OAI21_X1( &n2439, &n2441, &n2440, &n2521); int n3200; AOI21_X1( &n3199, &n3476, &n2288, &n3200); int n3721; XNOR2_X1( &n2252, &n3709, &n3721); int n1941; INV_X1( &n3211, &n1941); int n2444; NOR2_X1( &n2521, &n1738, &n2444); int n1940; INV_X2( &n1834, &n1940); int n3723; NAND2_X1( &n2998, &n2997, &n3723); int n3159; OAI21_X1( &n3212, &n1940, &n3211, &n3159); int n2291; NAND2_X1( &n3161, &n3163, &n2291); int n2263; OAI21_X1( &n3756, &n3866, &n3754, &n2263); int n2001; INV_X1( &n3864, &n2001); int n2000; NOR2_X1( &n3865, &n3866, &n2000); int n3715; OAI21_X1( &n1941, &n1834, &n1942, &n3715); int n3824; INV_X1( &n3866, &n3824); int n4558; NOR2_X2( &n2000, &n2001, &n4558); int n3478; NAND2_X1( &n2523, &n2444, &n3478); int nullval10; DFFS_X1( &n1543, rst_n, clk, &nullval10, &b1_w[26]); int n1544; INV_X1( &b1_i[25], &n1544); int n5460; NAND2_X1( &n5497, &b1_w[26], &n5460); int n5301; NAND2_X1( &n2725, &b1_w[26], &n5301); int n5327; NOR2_X1( &n4825, &n4824, &n5327); int n5320; AND2_X1( &n4824, &n4825, &n5320); int n5218; NAND2_X1( &n4785, &b1_w[26], &n5218); int n3822; OAI21_X1( &n3859, &n3821, &n3857, &n3822); int n3823; NOR2_X1( &n3820, &n3857, &n3823); int n3761; AOI21_X1( &n3862, &n3824, &n3858, &n3761); int n3740; OAI21_X1( &n3733, &n3735, &n3734, &n3740); int n3730; XOR2_X1( &n3735, &n3729, &n3730); int n3746; XNOR2_X1( &n3824, &n3705, &n3746); int n3702; NAND2_X1( &n3701, &n3700, &n3702); int n3480; INV_X1( &n3478, &n3480); int n3232; INV_X1( &n3230, &n3232); int n3229; INV_X1( &n3723, &n3229); int n3724; INV_X1( &n3228, &n3724); int n3213; NAND2_X1( &n1941, &n3212, &n3213); int n3164; INV_X1( &n3162, &n3164); int n3166; OAI21_X1( &n3161, &n3715, &n3160, &n3166); int n3713; INV_X1( &n3160, &n3713); int n3137; INV_X1( &n3135, &n3137); int n3003; NAND2_X1( &n3136, &n3700, &n3003); int n3697; NAND2_X1( &n3231, &n3723, &n3697); int n3004; NOR2_X1( &n3699, &n3135, &n3004); int n3698; NOR2_X1( &n3228, &n3230, &n3698); int n2994; NOR2_X1( &n3160, &n3162, &n2994); int n2912; NAND2_X1( &b1_w[26], &n5505, &n2912); int n2717; NAND2_X1( &b1_w[26], &n5506, &n2717); int n2524; INV_X1( &n2521, &n2524); int n2497; AOI211_X1( &n2494, &n2493, &n2496, &n2495, &n2497); int n3005; AOI21_X1( &n3003, &n3004, &n3697, &n3005); int n3749; XOR2_X1( &n2263, &n1758, &n3749); int n2204; NAND2_X2( &n3481, &n3478, &n2204); int n4631; INV_X1( &n4558, &n4631); int n3214; XNOR2_X1( &n1940, &n3213, &n3214); int n2537; NAND2_X2( &n2498, &n2497, &n2537); int n3130; AOI21_X2( &n2291, &n3159, &n2994, &n3130); int n2535; AOI21_X1( &n2522, &n2524, &n2523, &n2535); int nullval11; DFFS_X1( &n1544, rst_n, clk, &nullval11, &b1_w[25]); int n1545; INV_X1( &b1_i[24], &n1545); int n5495; NAND2_X1( &b1_w[25], &n5492, &n5495); int n5323; INV_X1( &n5320, &n5323); int n5206; INV_X1( &n5327, &n5206); int n5307; NAND2_X1( &n5497, &b1_w[25], &n5307); int n4833; NOR2_X1( &n5320, &n5327, &n4833); int n5217; NAND2_X1( &n2725, &b1_w[25], &n5217); int n3829; AOI21_X1( &n3822, &n3824, &n3823, &n3829); int n3762; XOR2_X1( &n3761, &n3760, &n3762); int n3745; XNOR2_X1( &n3740, &n3739, &n3745); int n3725; NAND2_X1( &n3724, &n3723, &n3725); int n3714; NAND2_X1( &n3713, &n3161, &n3714); int n3483; NOR2_X1( &n3480, &n3479, &n3483); int n3233; NAND2_X1( &n3232, &n3231, &n3233); int n3165; NAND2_X1( &n3164, &n3163, &n3165); int n3138; NAND2_X1( &n3137, &n3136, &n3138); int n3132; INV_X1( &n3697, &n3132); int n3131; INV_X1( &n3698, &n3131); int n3006; NAND2_X1( &n3698, &n3004, &n3006); int n4788; NAND2_X1( &n5024, &b1_w[25], &n4788); int n4830; NOR2_X1( &n2912, &n2911, &n4830); int n4826; AND2_X1( &n2912, &n2911, &n4826); int n2716; NAND2_X1( &b1_w[25], &n5505, &n2716); int n2704; NAND2_X1( &b1_w[25], &n5506, &n2704); int n3486; NOR2_X2( &n2537, &n2536, &n3486); int n3731; XNOR2_X1( &n3725, &n3130, &n3731); int n3726; INV_X2( &n3130, &n3726); int n5006; XOR2_X1( &n2266, &n3483, &n5006); int n3487; NAND2_X2( &n2536, &n2537, &n3487); int n3466; AOI21_X2( &n3479, &n2535, &n2217, &n3466); int n3488; OAI21_X2( &n3466, &n1779, &n2204, &n3488); int n3838; XOR2_X1( &n3829, &n3828, &n3838); int n3309; OAI21_X2( &n3005, &n3130, &n3006, &n3309); int n1716; XOR2_X1( &n3166, &n3165, &n1716); int n5065; XOR2_X1( &n3715, &n3714, &n5065); int n3776; NAND2_X1( &n3731, &n3730, &n3776); int n3777; OR2_X1( &n3731, &n3730, &n3777); int n5075; NOR2_X1( &n5065, &n3719, &n5075); int n1782; BUF_X2( &n3309, &n1782); int n2277; AOI21_X2( &n3486, &n3488, &n3487, &n2277); int nullval12; DFFS_X1( &n1545, rst_n, clk, &nullval12, &b1_w[24]); int n1552; INV_X1( &b1_i[17], &n1552); int n5494; NAND2_X1( &b1_w[24], &n5493, &n5494); int n5546; NAND2_X1( &n5254, &b1_w[24], &n5546); int n5067; XNOR2_X1( &n5066, &n5065, &n5067); int n4827; INV_X1( &n4826, &n4827); int n5166; NAND2_X1( &n5497, &b1_w[24], &n5166); int n3779; NAND2_X1( &n3777, &n3776, &n3779); int n3732; INV_X1( &n3776, &n3732); int n3722; INV_X1( &n5075, &n3722); int n3703; AOI21_X1( &n3697, &n3726, &n3698, &n3703); int n3467; INV_X1( &n3487, &n3467); int n3234; AOI21_X2( &n3229, &n3726, &n3724, &n3234); int n3133; OAI21_X1( &n3700, &n3132, &n3699, &n3133); int n3134; NOR2_X1( &n3131, &n3699, &n3134); int n2922; NAND2_X1( &b1_w[24], &n5502, &n2922); int n4787; NAND2_X1( &n2725, &b1_w[24], &n4787); int n2917; NOR2_X1( &n4826, &n4830, &n2917); int n2913; OR2_X1( &n2717, &n2716, &n2913); int n4828; NAND2_X1( &n2716, &n2717, &n4828); int n2705; NAND2_X1( &b1_w[24], &n5030, &n2705); int n2703; NAND2_X1( &b1_w[24], &n5506, &n2703); int n3913; INV_X2( &n3309, &n3913); int n1703; OR2_X1( &n3467, &n3486, &n1703); int n3497; XNOR2_X1( &n1703, &n3488, &n3497); int nullval13; DFFS_X1( &n1552, rst_n, clk, &nullval13, &b1_w[17]); int n1553; INV_X1( &b1_i[16], &n1553); int n5501; XNOR2_X1( &n5495, &n5494, &n5501); int n5324; AND2_X1( &n4828, &n4827, &n5324); int n4632; AND2_X1( &b1_w[17], &a1_w[9], &n4632); int n4560; AND2_X1( &b1_w[17], &n1671, &n4560); int n3747; XNOR2_X1( &n3703, &n3702, &n3747); int n4995; NOR2_X1( &n3497, &n3498, &n4995); int n3310; NAND2_X1( &n5255, &b1_w[17], &n3310); int n3259; XNOR2_X2( &n3234, &n3233, &n3259); int n3139; AOI21_X1( &n3133, &n3726, &n3134, &n3139); int n3030; NAND2_X1( &n5254, &b1_w[17], &n3030); int n2972; NAND2_X1( &n5497, &b1_w[17], &n2972); int n4829; INV_X1( &n2913, &n4829); int n2915; INV_X1( &n4828, &n2915); int n2731; NAND2_X1( &b1_w[17], &n4785, &n2731); int n2740; NAND2_X1( &b1_w[17], &a1_w[3], &n2740); int n2718; NAND2_X1( &n4828, &n2913, &n2718); int n2763; NOR2_X1( &n2705, &n2704, &n2763); int n2764; AND2_X1( &n2705, &n2704, &n2764); int n2608; NAND2_X1( &b1_w[17], &n5317, &n2608); int n2598; NAND2_X1( &b1_w[17], &n5505, &n2598); int n3795; NAND2_X1( &n3747, &n3746, &n3795); int n3499; NAND2_X2( &n3498, &n3497, &n3499); int nullval14; DFFS_X1( &n1553, rst_n, clk, &nullval14, &b1_w[16]); int n1554; INV_X1( &b1_i[15], &n1554); int n5329; OR2_X1( &n4830, &n4829, &n5329); int n5205; INV_X1( &n5324, &n5205); int n4559; AND2_X1( &b1_w[16], &a1_w[9], &n4559); int n4484; AND2_X1( &b1_w[16], &n1671, &n4484); int n3794; NOR2_X1( &n3747, &n3746, &n3794); int n5061; INV_X2( &n3499, &n5061); int n3263; XNOR2_X1( &n3139, &n3138, &n3263); int n3029; NAND2_X1( &n5255, &b1_w[16], &n3029); int n3023; NAND2_X1( &n5254, &b1_w[16], &n3023); int n2974; NAND2_X1( &n5497, &b1_w[16], &n2974); int n2772; NOR2_X1( &n2764, &n2763, &n2772); int n2732; NAND2_X1( &b1_w[16], &n2725, &n2732); int n2730; NAND2_X1( &b1_w[16], &n4785, &n2730); int n2696; INV_X1( &n2764, &n2696); int n2607; NAND2_X1( &b1_w[16], &n5030, &n2607); int n2605; NAND2_X1( &b1_w[16], &n5317, &n2605); int nullval15; DFFS_X1( &n1554, rst_n, clk, &nullval15, &b1_w[15]); int n1555; INV_X1( &b1_i[14], &n1555); int n5207; INV_X1( &n5329, &n5207); int n5209; NOR2_X1( &n5205, &n5320, &n5209); int n4996; NOR2_X1( &n5061, &n4995, &n4996); int n4622; NAND2_X1( &n4560, &n4559, &n4622); int n4617; NOR2_X1( &n4560, &n4559, &n4617); int n3796; INV_X1( &n3794, &n3796); int n3302; NAND2_X1( &n3030, &n3029, &n3302); int n3301; NOR2_X1( &n3030, &n3029, &n3301); int n2834; NAND2_X1( &n2732, &n2731, &n2834); int n2833; OR2_X1( &n2731, &n2732, &n2833); int n2616; OR2_X1( &n2608, &n2607, &n2616); int n2617; NAND2_X1( &n2607, &n2608, &n2617); int n5602; BUF_X2( &b1_w[15], &n5602); int nullval16; DFFS_X1( &n1555, rst_n, clk, &nullval16, &b1_w[14]); int n1556; INV_X1( &b1_i[13], &n1556); int n5208; OAI21_X1( &n5206, &n5207, &n5320, &n5208); int n5212; INV_X1( &n5209, &n5212); int n4561; INV_X1( &n4617, &n4561); int n4483; AND2_X1( &n5602, &a1_w[9], &n4483); int n4249; AND2_X1( &n5602, &n1671, &n4249); int n3797; NAND2_X1( &n3796, &n3795, &n3797); int n3031; INV_X1( &n3301, &n3031); int n3022; NAND2_X1( &n5255, &n5602, &n3022); int n3019; NAND2_X1( &n5254, &n5602, &n3019); int n2968; NAND2_X1( &n5497, &n5602, &n2968); int n2841; NAND2_X1( &n2834, &n2833, &n2841); int n2726; INV_X1( &n2833, &n2726); int n2729; NAND2_X1( &n5602, &n2725, &n2729); int n2628; NAND2_X1( &n5602, &n4785, &n2628); int n2626; NAND2_X1( &n2617, &n2616, &n2626); int n2603; NAND2_X1( &n5602, &n5317, &n2603); int n2606; NAND2_X1( &n5602, &n5030, &n2606); int n5601; BUF_X2( &b1_w[14], &n5601); int n2593; NAND2_X1( &n5601, &n5317, &n2593); int nullval17; DFFS_X1( &n1556, rst_n, clk, &nullval17, &b1_w[13]); int n1557; INV_X1( &b1_i[12], &n1557); int n4562; NAND2_X1( &n4561, &n4622, &n4562); int n4621; NAND2_X1( &n4484, &n4483, &n4621); int n4618; NOR2_X1( &n4484, &n4483, &n4618); int n4250; AND2_X1( &n5601, &a1_w[9], &n4250); int n4032; AND2_X1( &n5601, &n1671, &n4032); int n3032; NAND2_X1( &n3031, &n3302, &n3032); int n4043; NAND2_X1( &n3023, &n3022, &n4043); int n4042; NOR2_X1( &n3023, &n3022, &n4042); int n3018; NAND2_X1( &n5255, &n5601, &n3018); int n3021; NAND2_X1( &n5254, &n5601, &n3021); int n2970; NAND2_X1( &n5497, &n5601, &n2970); int n2835; AND2_X1( &n2730, &n2729, &n2835); int n3110; OR2_X1( &n2730, &n2729, &n3110); int n2637; NAND2_X1( &n5601, &n4785, &n2637); int n5598; BUF_X2( &b1_w[13], &n5598); int n2627; NAND2_X1( &n5601, &n2725, &n2627); int n2657; NOR2_X1( &n2606, &n2605, &n2657); int n2604; NAND2_X1( &n5601, &n5030, &n2604); int n2618; NAND2_X1( &n2605, &n2606, &n2618); int n2570; NAND2_X1( &n5317, &b1_w[13], &n2570); int n2594; NAND2_X1( &b1_w[13], &n5030, &n2594); int n2634; NAND2_X1( &n5598, &n4785, &n2634); int n5837; DFFS_X1( &n1557, rst_n, clk, &n5837, &b1_w[12]); int n1558; INV_X1( &b1_i[11], &n1558); int n4623; NAND2_X1( &n4622, &n4621, &n4623); int n4625; NOR2_X1( &n4618, &n4617, &n4625); int n4485; INV_X1( &n4618, &n4485); int n4480; NAND2_X1( &n4250, &n4249, &n4480); int n4477; NOR2_X1( &n4250, &n4249, &n4477); int n4044; INV_X1( &n4042, &n4044); int n4033; AND2_X1( &n5598, &a1_w[9], &n4033); int n3989; AND2_X1( &n5598, &n1671, &n3989); int n3990; AND2_X1( &b1_w[12], &a1_w[9], &n3990); int n3907; AND2_X1( &b1_w[12], &n1671, &n3907); int n3303; NAND2_X1( &n3302, &n4043, &n3303); int n3304; NOR2_X1( &n4042, &n3301, &n3304); int n3085; NAND2_X1( &n3019, &n3018, &n3085); int n3084; NOR2_X1( &n3019, &n3018, &n3084); int n3020; NAND2_X1( &n5255, &n5598, &n3020); int n3012; NAND2_X1( &n5255, &b1_w[12], &n3012); int n3013; NAND2_X1( &n5254, &n5598, &n3013); int n3015; NAND2_X1( &n5254, &b1_w[12], &n3015); int n2962; NAND2_X1( &n5497, &n5598, &n2962); int n3111; INV_X1( &n2835, &n3111); int n2727; INV_X1( &n3110, &n2727); int n2638; NAND2_X1( &n5598, &n2725, &n2638); int n2723; OR2_X1( &n2628, &n2627, &n2723); int n2728; NAND2_X1( &n2627, &n2628, &n2728); int n2658; INV_X1( &n2618, &n2658); int n2619; INV_X1( &n2657, &n2619); int n2643; NOR2_X1( &n2604, &n2603, &n2643); int n2644; AND2_X1( &n2604, &n2603, &n2644); int n2610; NAND2_X1( &n2618, &n2617, &n2610); int n2645; NOR2_X1( &n2594, &n2593, &n2645); int n2571; NAND2_X1( &b1_w[12], &n5030, &n2571); int n2556; NAND2_X1( &b1_w[12], &n5317, &n2556); int n2585; NAND2_X1( &n2571, &n2570, &n2585); int n2646; NAND2_X1( &n2593, &n2594, &n2646); int n2609; AND2_X1( &n2619, &n2616, &n2609); int n2661; OR2_X1( &n2645, &n2643, &n2661); int n2620; INV_X1( &n2661, &n2620); int n2601; INV_X1( &n2644, &n2601); int n2659; NAND2_X1( &n2646, &n2601, &n2659); int n2600; INV_X1( &n2646, &n2600); int n5597; INV_X1( &n5837, &n5597); int n5839; DFFS_X1( &n1558, rst_n, clk, &n5839, &b1_w[11]); int n1559; INV_X1( &b1_i[10], &n1559); int n4486; NAND2_X1( &n4485, &n4621, &n4486); int n4251; INV_X1( &n4477, &n4251); int n4045; NAND2_X1( &n4044, &n4043, &n4045); int n4479; NAND2_X1( &n4033, &n4032, &n4479); int n4478; NOR2_X1( &n4033, &n4032, &n4478); int n4028; NAND2_X1( &n3990, &n3989, &n4028); int n4024; NOR2_X1( &n3990, &n3989, &n4024); int n3908; AND2_X1( &b1_w[11], &a1_w[9], &n3908); int n3119; NAND2_X1( &n3111, &n3110, &n3119); int n3086; INV_X1( &n3084, &n3086); int n3914; NAND2_X1( &n3021, &n3020, &n3914); int n3048; NAND2_X1( &n3013, &n3012, &n3048); int n3080; NOR2_X1( &n3021, &n3020, &n3080); int n3047; NOR2_X1( &n3013, &n3012, &n3047); int n3009; NAND2_X1( &n5254, &b1_w[11], &n3009); int n2964; NAND2_X1( &n5497, &n5597, &n2964); int n2733; NAND2_X1( &n3111, &n2834, &n2733); int n2734; NOR2_X1( &n2727, &n2726, &n2734); int n2724; INV_X1( &n2723, &n2724); int n2667; NOR2_X1( &n2658, &n2657, &n2667); int n2649; NOR2_X1( &n2644, &n2643, &n2649); int n3147; NAND2_X1( &n2638, &n2637, &n3147); int n3146; NOR2_X1( &n2638, &n2637, &n3146); int n2635; NAND2_X1( &n5597, &n2725, &n2635); int n2642; NAND2_X1( &n2728, &n2723, &n2642); int n2621; OAI21_X1( &n2619, &n2620, &n2658, &n2621); int n2622; NOR2_X1( &n2659, &n2658, &n2622); int n2595; NOR2_X1( &n2600, &n2645, &n2595); int n2589; NOR2_X1( &n2571, &n2570, &n2589); int n2539; NAND2_X1( &b1_w[11], &n5317, &n2539); int n2572; INV_X1( &n2585, &n2572); int n2960; NAND2_X1( &n5497, &b1_w[11], &n2960); int n1697; OR2_X1( &n2572, &n2589, &n1697); int n2088; INV_X1( &n2649, &n2088); int n2557; NAND2_X1( &b1_w[11], &n5030, &n2557); int n1904; NAND2_X1( &n2725, &b1_w[11], &n1904); int n1905; NAND2_X1( &n4785, &n5597, &n1905); int n2611; OAI21_X1( &n2609, &n2610, &n2620, &n2611); int n2663; INV_X1( &n2659, &n2663); int n2612; NOR2_X1( &n2610, &n2659, &n2612); int n1906; NOR2_X1( &n2634, &n2635, &n1906); int n3117; NOR2_X1( &n3146, &n2724, &n3117); int n3249; NAND2_X1( &n1904, &n1905, &n3249); int n3248; NOR2_X1( &n1905, &n1904, &n3248); int n1800; INV_X1( &n2611, &n1800); int n4660; INV_X1( &n5839, &n4660); int n5835; DFFS_X1( &n1559, rst_n, clk, &n5835, &b1_w[10]); int n1551; INV_X1( &b1_i[18], &n1551); int n4624; NAND2_X1( &n4480, &n4479, &n4624); int n4619; NOR2_X1( &n4478, &n4477, &n4619); int n4252; NAND2_X1( &n4251, &n4480, &n4252); int n4245; INV_X1( &n4479, &n4245); int n4246; INV_X1( &n4478, &n4246); int n3991; INV_X1( &n4024, &n3991); int n4027; NAND2_X1( &n3908, &n3907, &n4027); int n4025; NOR2_X1( &n3908, &n3907, &n4025); int n3880; AND2_X1( &n4660, &n1671, &n3880); int n3250; INV_X1( &n3248, &n3250); int n3148; INV_X1( &n3146, &n3148); int n3113; INV_X1( &n3117, &n3113); int n3087; NAND2_X1( &n3086, &n3085, &n3087); int n3081; INV_X1( &n3914, &n3081); int n3915; INV_X1( &n3080, &n3915); int n3049; INV_X1( &n3047, &n3049); int n4037; NAND2_X1( &n3085, &n3914, &n4037); int n4038; NOR2_X1( &n3080, &n3084, &n4038); int n3014; NAND2_X1( &n5493, &n4660, &n3014); int n3008; NAND2_X1( &n5493, &b1_w[10], &n3008); int n3011; NAND2_X1( &n5254, &b1_w[10], &n3011); int n2939; INV_X2( &n5835, &n2939); int n2958; NAND2_X1( &n5497, &b1_w[10], &n2958); int n2837; NAND2_X1( &n3117, &n3110, &n2837); int n3114; NAND2_X1( &n3147, &n2728, &n3114); int n2736; NAND2_X1( &n3117, &n2734, &n2736); int n2655; NAND2_X1( &n2635, &n2634, &n2655); int n2582; NAND2_X1( &n4660, &n4785, &n2582); int n2581; NAND2_X1( &b1_w[10], &n2725, &n2581); int n2632; OR2_X1( &n5835, &n2575, &n2632); int n2563; NOR2_X1( &n4660, &n4285, &n2563); int n2590; NOR2_X1( &n2557, &n2556, &n2590); int n2584; NAND2_X2( &n2556, &n2557, &n2584); int n2519; NAND2_X1( &b1_w[10], &n5317, &n2519); int n1903; NAND2_X1( &n2632, &n2631, &n1903); int n2654; INV_X1( &n1906, &n2654); int n2562; NAND2_X1( &b1_w[10], &n5030, &n2562); int n2633; NAND2_X1( &n2582, &n2581, &n2633); int n3251; NAND2_X1( &n1903, &n2633, &n3251); int n2351; NOR2_X1( &n2590, &n2589, &n2351); int n2636; NOR2_X1( &n1906, &n3248, &n2636); int n2630; OR2_X1( &n2631, &n2632, &n2630); int n1902; NAND2_X1( &n2655, &n3249, &n1902); int n3149; AOI21_X2( &n1902, &n2636, &n3251, &n3149); int nullval18; DFFS_X1( &n1551, rst_n, clk, &nullval18, &b1_w[18]); int n1550; INV_X1( &b1_i[19], &n1550); int n4775; AND2_X1( &b1_w[18], &a1_w[9], &n4775); int n4633; AND2_X1( &b1_w[18], &n1671, &n4633); int n4626; AOI21_X1( &n4623, &n4625, &n4624, &n4626); int n4628; NAND2_X1( &n4619, &n4625, &n4628); int n4552; INV_X1( &n4624, &n4552); int n4550; INV_X1( &n4619, &n4550); int n4034; NAND2_X1( &n4246, &n4479, &n4034); int n4029; NAND2_X1( &n4028, &n4027, &n4029); int n4031; NOR2_X1( &n4025, &n4024, &n4031); int n3992; NAND2_X1( &n3991, &n4028, &n3992); int n3985; INV_X1( &n4027, &n3985); int n3916; NAND2_X1( &n3915, &n3914, &n3916); int n3986; INV_X1( &n4025, &n3986); int n3879; AND2_X1( &n2939, &a1_w[9], &n3879); int n3868; AND2_X1( &n2939, &n1671, &n3868); int n3312; NAND2_X1( &n5255, &b1_w[18], &n3312); int n3311; NAND2_X1( &n5492, &b1_w[18], &n3311); int n3305; AOI21_X1( &n3303, &n3304, &n4037, &n3305); int n3306; NAND2_X1( &n4038, &n3304, &n3306); int n3255; NAND2_X1( &n3250, &n3249, &n3255); int n3150; INV_X1( &n3149, &n3150); int n3152; NAND2_X1( &n3148, &n3147, &n3152); int n3115; NOR2_X1( &n3149, &n3113, &n3115); int n3050; NAND2_X1( &n3049, &n3048, &n3050); int n3024; INV_X1( &n4037, &n3024); int n3853; NAND2_X1( &n3015, &n3014, &n3853); int n3751; NAND2_X1( &n3011, &n3010, &n3751); int n3099; NAND2_X1( &n3009, &n3008, &n3099); int n3007; INV_X1( &n4038, &n3007); int n3043; NOR2_X1( &n3015, &n3014, &n3043); int n3098; NOR2_X1( &n3009, &n3008, &n3098); int n3750; NOR2_X1( &n3011, &n3010, &n3750); int n2982; NAND2_X1( &n5497, &b1_w[18], &n2982); int n2836; AOI21_X1( &n2835, &n3110, &n3114, &n2836); int n2735; AOI21_X1( &n2733, &n2734, &n3114, &n2735); int n2742; NAND2_X1( &b1_w[18], &a1_w[3], &n2742); int n2739; NAND2_X1( &b1_w[18], &n5502, &n2739); int n2710; NAND2_X1( &b1_w[18], &n5505, &n2710); int n2656; NAND2_X1( &n2655, &n2654, &n2656); int n2639; OAI21_X1( &n3147, &n3149, &n3146, &n2639); int n2599; NAND2_X1( &b1_w[18], &n2687, &n2599); int n2588; AND2_X4( &n2585, &n2584, &n2588); int n2629; OR2_X1( &n2582, &n2581, &n2629); int n3242; AND2_X1( &n2632, &n2631, &n3242); int n2587; NOR3_X1( &n2563, &n2561, &n2562, &n2587); int n2558; INV_X1( &n2584, &n2558); int n2559; NAND2_X1( &n2562, &n2539, &n2559); int n2540; OR2_X1( &n2520, &n2519, &n2540); int n2560; NAND2_X1( &n2519, &n2520, &n2560); int n2367; AND2_X1( &n2560, &n2540, &n2367); int n1946; AOI21_X2( &n3242, &n2630, &n3252, &n1946); int n2651; INV_X1( &n3251, &n2651); int n2877; OR2_X1( &n2599, &n2598, &n2877); int n3243; INV_X1( &n2630, &n3243); int n2265; INV_X1( &n2560, &n2265); int n2586; AND2_X2( &n2559, &n2560, &n2586); int n3116; OR2_X1( &n3115, &n3114, &n3116); int n3058; NAND2_X1( &n2740, &n2739, &n3058); int n2137; INV_X1( &n3751, &n2137); int n2650; NAND2_X1( &n2629, &n2630, &n2650); int n2264; OAI21_X1( &n2540, &n2666, &n2265, &n2264); int n2538; XOR2_X2( &n2666, &n2367, &n2538); int n2602; NAND2_X2( &n2586, &n2588, &n2602); int nullval19; DFFS_X1( &n1550, rst_n, clk, &nullval19, &b1_w[19]); int n1549; INV_X1( &b1_i[20], &n1549); int n5181; AND2_X1( &b1_w[19], &a1_w[9], &n5181); int n4776; AND2_X1( &b1_w[19], &n1671, &n4776); int n4719; NAND2_X1( &n4633, &n4632, &n4719); int n4720; NOR2_X1( &n4633, &n4632, &n4720); int n4553; OAI21_X1( &n4621, &n4552, &n4618, &n4553); int n4555; NOR2_X1( &n4550, &n4618, &n4555); int n3909; NAND2_X1( &n3986, &n4027, &n3909); int n3904; NAND2_X1( &n3880, &n3879, &n3904); int n3901; NOR2_X1( &n3880, &n3879, &n3901); int n3903; NAND2_X1( &n3868, &n3867, &n3903); int n3902; NOR2_X1( &n3868, &n3867, &n3902); int n3752; INV_X1( &n3750, &n3752); int n3348; NAND2_X1( &n5493, &b1_w[19], &n3348); int n3313; NAND2_X1( &n5254, &b1_w[19], &n3313); int n4474; NAND2_X1( &n3311, &n3310, &n4474); int n4473; NOR2_X1( &n3311, &n3310, &n4473); int n3244; NOR2_X1( &n3243, &n3242, &n3244); int n3100; INV_X1( &n3098, &n3100); int n3044; INV_X1( &n3853, &n3044); int n3854; INV_X1( &n3043, &n3854); int n3025; OAI21_X1( &n4043, &n3024, &n4042, &n3025); int n3016; NAND2_X1( &n3048, &n3853, &n3016); int n3852; NAND2_X1( &n3099, &n3751, &n3852); int n3026; NOR2_X1( &n3007, &n4042, &n3026); int n3017; NOR2_X1( &n3043, &n3047, &n3017); int n3851; NOR2_X1( &n3750, &n3098, &n3851); int n2987; NAND2_X1( &n5497, &b1_w[19], &n2987); int n2838; OAI21_X1( &n2836, &n3149, &n2837, &n2838); int n2737; OAI21_X1( &n2735, &n2736, &n3149, &n2737); int n2745; NAND2_X1( &b1_w[19], &a1_w[3], &n2745); int n2741; NAND2_X1( &b1_w[19], &n5502, &n2741); int n3057; NOR2_X1( &n2740, &n2739, &n3057); int n2711; NAND2_X1( &b1_w[19], &n5317, &n2711); int n2688; INV_X1( &n2877, &n2688); int n2692; NAND2_X1( &b1_w[19], &n5505, &n2692); int n2652; OAI21_X1( &n3249, &n2651, &n3248, &n2652); int n2653; NOR2_X1( &n2650, &n3248, &n2653); int n2660; INV_X2( &n2602, &n2660); int n2876; NAND2_X1( &n2598, &n2599, &n2876); int n2591; NAND2_X2( &n2588, &n2587, &n2591); int n2583; NAND2_X1( &n2633, &n2629, &n2583); int n2573; AOI21_X1( &n2590, &n2587, &n2584, &n2573); int n2574; NAND2_X1( &n2584, &n2586, &n2574); int n2564; INV_X1( &n2587, &n2564); int n2565; INV_X1( &n2586, &n2565); int n2567; NOR2_X1( &n2558, &n2590, &n2567); int n2541; OAI21_X1( &n2559, &n2539, &n2562, &n2541); int n1999; AOI21_X1( &n3852, &n1782, &n3851, &n1999); int n2597; XOR2_X2( &n1946, &n2583, &n2597); int n1947; OAI21_X1( &n2573, &n2666, &n2574, &n1947); int n2097; AOI21_X1( &n2652, &n2653, &n3252, &n2097); int n1757; AND2_X1( &n3100, &n3099, &n1757); int n2229; INV_X1( &n2876, &n2229); int n1832; AOI21_X1( &n2137, &n1782, &n3752, &n1832); int n3253; INV_X1( &n2650, &n3253); int n3112; NAND2_X1( &n3253, &n2636, &n3112); int n2613; NAND2_X1( &n2612, &n2660, &n2613); int n2162; INV_X1( &n2541, &n2162); int n2566; OAI21_X1( &n2564, &n2666, &n2565, &n2566); int n3911; AOI21_X1( &n3016, &n3017, &n3852, &n3911); int n4039; INV_X1( &n3911, &n4039); int n1969; XOR2_X1( &n1947, &n1697, &n1969); int nullval20; DFFS_X1( &n1549, rst_n, clk, &nullval20, &b1_w[20]); int n1548; INV_X1( &b1_i[21], &n1548); int n5253; AND2_X1( &b1_w[20], &a1_w[9], &n5253); int n5180; AND2_X1( &b1_w[20], &n1671, &n5180); int n4634; INV_X1( &n4720, &n4634); int n4475; INV_X1( &n4473, &n4475); int n4040; AOI21_X1( &n4037, &n4039, &n4038, &n4040); int n4030; NAND2_X1( &n3904, &n3903, &n4030); int n4026; NOR2_X1( &n3902, &n3901, &n4026); int n3881; INV_X1( &n3901, &n3881); int n3883; OAI21_X1( &n3903, &n4558, &n3902, &n3883); int n3869; INV_X1( &n3902, &n3869); int n3855; NAND2_X1( &n3854, &n3853, &n3855); int n3753; NAND2_X1( &n3752, &n3751, &n3753); int n3349; NAND2_X1( &n5492, &b1_w[20], &n3349); int n4778; NAND2_X1( &n5255, &b1_w[20], &n4778); int n3347; NAND2_X1( &n3313, &n3312, &n3347); int n3346; NOR2_X1( &n3313, &n3312, &n3346); int n3307; OAI21_X1( &n3305, &n3306, &n3911, &n3307); int n3287; NAND2_X1( &n5497, &b1_w[20], &n3287); int n3256; XNOR2_X1( &n3244, &n3252, &n3256); int n3082; AOI21_X1( &n3081, &n4039, &n3915, &n3082); int n3059; INV_X1( &n3057, &n3059); int n3045; AOI21_X1( &n3044, &n3852, &n3854, &n3045); int n3046; NAND2_X1( &n3851, &n3854, &n3046); int n3027; AOI21_X1( &n3025, &n3026, &n4039, &n3027); int n3912; NAND2_X1( &n3851, &n3017, &n3912); int n2839; NOR2_X1( &n3112, &n2837, &n2839); int n2860; NAND2_X1( &n2742, &n2741, &n2860); int n2738; NOR2_X1( &n3112, &n2736, &n2738); int n2746; NAND2_X1( &b1_w[20], &n5502, &n2746); int n2743; NAND2_X1( &b1_w[20], &n2725, &n2743); int n2859; OR2_X1( &n2741, &n2742, &n2859); int n2832; AND2_X1( &n2711, &n2710, &n2832); int n2831; NOR2_X1( &n2710, &n2711, &n2831); int n2689; NAND2_X1( &b1_w[20], &n5505, &n2689); int n2691; NAND2_X1( &b1_w[20], &n5506, &n2691); int n2665; NAND2_X1( &n2663, &n2660, &n2665); int n2648; NAND2_X1( &n2646, &n2660, &n2648); int n2640; NOR2_X1( &n3112, &n3146, &n2640); int n2624; NAND2_X1( &n2622, &n2660, &n2624); int n2614; NAND2_X1( &n2876, &n2877, &n2614); int n2662; NAND2_X4( &n2591, &n2351, &n2662); int n2199; XNOR2_X2( &n2567, &n2566, &n2199); int n3151; NOR2_X2( &n2320, &n3112, &n3151); int n2148; NOR2_X2( &n3151, &n3150, &n2148); int n3265; XNOR2_X2( &n3152, &n2148, &n3265); int n2669; XOR2_X1( &n2097, &n2656, &n2669); int n3874; XNOR2_X1( &n3855, &n1999, &n3874); int n1949; NOR2_X2( &n1969, &n2597, &n1949); int n3763; XNOR2_X1( &n3753, &n3913, &n3763); int n3267; XOR2_X1( &n1832, &n1757, &n3267); int n2569; XNOR2_X2( &n2162, &n2264, &n2569); int n2647; AOI21_X1( &n2645, &n2662, &n2646, &n2647); int n2232; NOR2_X2( &n2613, &n2666, &n2232); int n2095; NOR2_X1( &n2648, &n2666, &n2095); int n3254; AOI21_X1( &n3251, &n3253, &n3252, &n3254); int n2002; NAND2_X2( &n2597, &n1969, &n2002); int n3432; INV_X1( &n2002, &n3432); int n3431; INV_X1( &n1949, &n3431); int n2935; AND2_X1( &n3058, &n2860, &n2935); int n2933; NOR2_X1( &n2746, &n2745, &n2933); int n3262; XNOR2_X1( &n3255, &n3254, &n3262); int n1799; NAND2_X1( &n2662, &n2612, &n1799); int n2091; NOR2_X1( &n2665, &n2666, &n2091); int n2233; NAND2_X1( &n1800, &n1799, &n2233); int n3872; NAND2_X1( &n3763, &n3762, &n3872); int nullval21; DFFS_X1( &n1548, rst_n, clk, &nullval21, &b1_w[21]); int n1547; INV_X1( &b1_i[22], &n1547); int n5549; AND2_X1( &b1_w[21], &a1_w[9], &n5549); int n5252; AND2_X1( &b1_w[21], &n1671, &n5252); int n5161; NAND2_X1( &n5255, &b1_w[21], &n5161); int n4635; NAND2_X1( &n4634, &n4719, &n4635); int n4476; NAND2_X1( &n4475, &n4474, &n4476); int n4627; AOI21_X1( &n4029, &n4031, &n4030, &n4627); int n4620; NAND2_X1( &n4026, &n4031, &n4620); int n3987; AOI21_X1( &n3985, &n4030, &n3986, &n3987); int n3988; NAND2_X1( &n4026, &n3986, &n3988); int n3917; OAI21_X1( &n3911, &n3913, &n3912, &n3917); int n3905; INV_X1( &n4030, &n3905); int n3906; INV_X1( &n4026, &n3906); int n3882; NAND2_X1( &n3881, &n3904, &n3882); int n3870; NAND2_X1( &n3869, &n3903, &n3870); int n3850; NOR2_X1( &n3763, &n3762, &n3850); int n4613; NAND2_X1( &n3349, &n3348, &n4613); int n4610; NAND2_X1( &n3347, &n4474, &n4610); int n4614; OR2_X1( &n3349, &n3348, &n4614); int n4611; NOR2_X1( &n3346, &n4473, &n4611); int n4779; NAND2_X1( &n5254, &b1_w[21], &n4779); int n3314; INV_X1( &n3346, &n3314); int n3308; NOR2_X1( &n3912, &n3306, &n3308); int n3297; NAND2_X1( &n5497, &b1_w[21], &n3297); int n3118; AOI21_X2( &n3116, &n3151, &n3117, &n3118); int n3061; NAND2_X1( &n3059, &n3058, &n3061); int n3051; OAI21_X1( &n3045, &n3913, &n3046, &n3051); int n4036; INV_X1( &n3912, &n4036); int n2862; NAND2_X1( &n2860, &n2859, &n2862); int n2840; AOI21_X1( &n2838, &n2839, &n3252, &n2840); int n2879; NOR2_X1( &n2832, &n2831, &n2879); int n2779; INV_X1( &n2935, &n2779); int n2776; INV_X1( &n2933, &n2776); int n2750; NAND2_X1( &b1_w[21], &a1_w[3], &n2750); int n2934; AND2_X1( &n2746, &n2745, &n2934); int n3060; AOI21_X2( &n2737, &n2738, &n3252, &n3060); int n2744; NAND2_X1( &b1_w[21], &n5502, &n2744); int n2721; INV_X1( &n2859, &n2721); int n2712; INV_X1( &n2832, &n2712); int n2699; NAND2_X1( &b1_w[21], &n5505, &n2699); int n2849; NOR2_X1( &n2692, &n2691, &n2849); int n2871; NOR2_X1( &n2688, &n2831, &n2871); int n2690; NAND2_X1( &b1_w[21], &n5506, &n2690); int n2847; AND2_X1( &n2691, &n2692, &n2847); int n2672; INV_X1( &n2669, &n2672); int n2664; AOI21_X1( &n2661, &n2663, &n2662, &n2664); int n2641; AOI21_X1( &n2639, &n2640, &n3252, &n2641); int n2623; AOI21_X1( &n2621, &n2622, &n2662, &n2623); int n2592; INV_X1( &n2662, &n2592); int n3447; NOR2_X2( &n2569, &n2568, &n3447); int n2827; NOR2_X4( &n2233, &n2232, &n2827); int n3446; NAND2_X2( &n2569, &n2568, &n3446); int n2094; NAND2_X1( &n2647, &n2088, &n2094); int n2092; INV_X1( &n2664, &n2092); int n2096; INV_X1( &n2647, &n2096); int n2676; XNOR2_X1( &n2642, &n2641, &n2676); int n2678; XOR2_X2( &n2827, &n2614, &n2678); int n1815; NAND2_X2( &n3446, &n2002, &n1815); int n1731; OR2_X1( &n3432, &n1949, &n1731); int n1720; XOR2_X1( &n2841, &n2840, &n1720); int n1717; XOR2_X1( &n3917, &n3916, &n1717); int n3875; XOR2_X1( &n4558, &n3870, &n3875); int n5524; INV_X1( &n2827, &n5524); int n4472; AOI21_X1( &n3307, &n1782, &n3308, &n4472); int n2596; OAI21_X1( &n2592, &n2666, &n2602, &n2596); int n1828; NAND2_X1( &n2877, &n2879, &n1828); int n2089; OAI21_X1( &n2667, &n2091, &n2092, &n2089); int n2093; OAI21_X1( &n2649, &n2095, &n2096, &n2093); int n2192; NOR2_X1( &n2827, &n2229, &n2192); int n2090; OR2_X1( &n2092, &n2667, &n2090); int n2670; OAI21_X1( &n2093, &n2095, &n2094, &n2670); int nullval22; DFFS_X1( &n1547, rst_n, clk, &nullval22, &b1_w[22]); int n1546; INV_X1( &b1_i[23], &n1546); int n5487; NAND2_X1( &b1_w[22], &a1_w[9], &n5487); int n5548; AND2_X1( &b1_w[22], &n1671, &n5548); int n5257; NAND2_X1( &n5255, &b1_w[22], &n5257); int n5162; NAND2_X1( &n5254, &b1_w[22], &n5162); int n4629; OAI21_X1( &n4626, &n4628, &n4627, &n4629); int n4630; NOR2_X1( &n4620, &n4628, &n4630); int n4615; NAND2_X1( &n4614, &n4613, &n4615); int n4612; INV_X1( &n4472, &n4612); int n4554; INV_X1( &n4627, &n4554); int n4551; INV_X1( &n4620, &n4551); int n4041; NAND2_X1( &n4036, &n4038, &n4041); int n4035; OAI21_X1( &n4627, &n4558, &n4620, &n4035); int n3993; OAI21_X1( &n3987, &n4558, &n3988, &n3993); int n3910; OAI21_X1( &n3905, &n4558, &n3906, &n3910); int n3900; XNOR2_X1( &n3883, &n3882, &n3900); int n3961; NAND2_X1( &n3875, &n3874, &n3961); int n3819; INV_X1( &n3850, &n3819); int n3453; INV_X1( &n3446, &n3453); int n3350; INV_X1( &n4613, &n3350); int n3352; NAND2_X1( &n4611, &n4614, &n3352); int n3333; NAND2_X1( &n5497, &b1_w[22], &n3333); int n3315; NAND2_X1( &n3314, &n3347, &n3315); int n3316; OAI21_X1( &n4474, &n4472, &n4473, &n3316); int n3268; XNOR2_X2( &n3119, &n3118, &n3268); int n3083; NAND2_X1( &n4036, &n3915, &n3083); int n3062; XNOR2_X1( &n3061, &n3060, &n3062); int n3270; XOR2_X1( &n3051, &n3050, &n3270); int n3028; NAND2_X1( &n4036, &n3026, &n3028); int n2938; NOR2_X1( &n2934, &n2933, &n2938); int n2878; NAND2_X1( &n2879, &n2877, &n2878); int n2875; INV_X1( &n2879, &n2875); int n2861; OAI21_X1( &n3058, &n3060, &n3057, &n2861); int n2872; NOR2_X1( &n2847, &n2849, &n2872); int n2751; NAND2_X1( &b1_w[22], &n5502, &n2751); int n2749; NAND2_X1( &b1_w[22], &n2725, &n2749); int n2775; AND2_X1( &n2744, &n2743, &n2775); int n2921; INV_X2( &n3060, &n2921); int n2774; NOR2_X1( &n2743, &n2744, &n2774); int n2773; NOR2_X1( &n3057, &n2721, &n2773); int n2843; AND2_X1( &n2876, &n2712, &n2843); int n2697; NAND2_X1( &b1_w[22], &n5505, &n2697); int n2700; NAND2_X1( &b1_w[22], &n5506, &n2700); int n2844; OR2_X1( &n2690, &n2689, &n2844); int n2846; INV_X1( &n2871, &n2846); int n2845; NAND2_X1( &n2689, &n2690, &n2845); int n2686; INV_X1( &n2847, &n2686); int n2680; INV_X1( &n2678, &n2680); int n2671; INV_X1( &n2670, &n2671); int n2625; OAI21_X1( &n2623, &n2666, &n2624, &n2625); int n2200; XNOR2_X2( &n2595, &n2596, &n2200); int n3549; NAND2_X2( &n2672, &n2671, &n3549); int n2673; OAI21_X2( &n2089, &n2090, &n2091, &n2673); int n2677; XNOR2_X1( &n2626, &n2625, &n2677); int n3513; NOR2_X2( &n2676, &n2677, &n3513); int n3550; NAND2_X2( &n2669, &n2670, &n3550); int n3962; OR2_X2( &n3875, &n3874, &n3962); int n1754; AND2_X1( &n3550, &n3549, &n1754); int n2874; INV_X1( &n2192, &n2874); int n2136; NOR2_X1( &n2775, &n2934, &n2136); int n1829; OAI21_X1( &n2875, &n2192, &n2688, &n1829); int n1827; OR2_X1( &n2192, &n1828, &n1827); int n3408; NAND3_X1( &n1720, &n1829, &n1827, &n3408); int n2865; OR2_X1( &n2700, &n2699, &n2865); int n2747; OR2_X1( &n2933, &n2774, &n2747); int nullval23; DFFS_X1( &n1546, rst_n, clk, &nullval23, &b1_w[23]); int n1628; INV_X1( &a1_i[5], &n1628); int n5486; NAND2_X1( &b1_w[23], &n1671, &n5486); int n5545; NAND2_X1( &n5255, &b1_w[23], &n5545); int n5258; NAND2_X1( &n5492, &b1_w[23], &n5258); int n4721; AOI21_X1( &n4629, &n4631, &n4630, &n4721); int n4616; AOI21_X1( &n4610, &n4612, &n4611, &n4616); int n4556; AOI21_X1( &n4553, &n4555, &n4554, &n4556); int n4557; NAND2_X1( &n4551, &n4555, &n4557); int n4481; AOI21_X1( &n4624, &n4554, &n4619, &n4481); int n4482; NAND2_X1( &n4551, &n4619, &n4482); int n4489; XOR2_X1( &n4612, &n4476, &n4489); int n4247; AOI21_X1( &n4245, &n4554, &n4246, &n4247); int n4248; NAND2_X1( &n4551, &n4246, &n4248); int n4046; OAI21_X1( &n4040, &n3913, &n4041, &n4046); int n4048; XNOR2_X1( &n4035, &n4034, &n4048); int n4012; XNOR2_X1( &n3993, &n3992, &n4012); int n3963; NAND2_X1( &n3962, &n3961, &n3963); int n3918; XNOR2_X1( &n3910, &n3909, &n3918); int n3876; INV_X1( &n3961, &n3876); int n3764; NAND2_X1( &n3819, &n3872, &n3764); int n3536; INV_X1( &n3550, &n3536); int n3526; INV_X1( &n3513, &n3526); int n3454; NOR2_X1( &n3447, &n3453, &n3454); int n3556; INV_X1( &n3408, &n3556); int n3358; NAND2_X1( &n5497, &b1_w[23], &n3358); int n3351; AOI21_X1( &n3350, &n4610, &n4614, &n3351); int n3339; XOR2_X1( &n3316, &n3315, &n3339); int n3088; OAI21_X1( &n3082, &n3913, &n3083, &n3088); int n3033; OAI21_X1( &n3027, &n3913, &n3028, &n3033); int n2923; NAND2_X1( &b1_w[23], &n2725, &n2923); int n2880; OAI21_X1( &n2878, &n2229, &n2879, &n2880); int n2881; NAND2_X1( &n2877, &n2875, &n2881); int n2883; NOR2_X1( &n2874, &n2875, &n2883); int n2887; XNOR2_X1( &n2862, &n2861, &n2887); int n2850; NAND2_X1( &n2845, &n2844, &n2850); int n2828; NAND2_X1( &n2872, &n2871, &n2828); int n2824; INV_X1( &n2872, &n2824); int n2780; NOR2_X1( &n2775, &n2774, &n2780); int n2936; NAND2_X2( &n2773, &n2921, &n2936); int n3276; OR2_X1( &n2751, &n2750, &n3276); int n3277; NAND2_X1( &n2750, &n2751, &n3277); int n2748; NAND2_X1( &b1_w[23], &n5502, &n2748); int n2722; INV_X1( &n2773, &n2722); int n2713; INV_X1( &n2843, &n2713); int n2698; NAND2_X1( &b1_w[23], &n5506, &n2698); int n2866; NAND2_X1( &n2699, &n2700, &n2866); int n2702; NAND2_X1( &b1_w[23], &n5030, &n2702); int n2693; INV_X1( &n2844, &n2693); int n2714; NAND2_X1( &n2686, &n2845, &n2714); int n3524; AND2_X2( &n2677, &n2676, &n3524); int n2674; INV_X1( &n2673, &n2674); int n1840; NOR2_X2( &n2827, &n2713, &n1840); int n2079; NOR2_X1( &n1840, &n2846, &n2079); int n2870; INV_X1( &n1840, &n2870); int n1676; OR2_X1( &n3918, &n1717, &n1676); int n3525; INV_X1( &n3524, &n3525); int n3532; NAND2_X1( &n3526, &n3525, &n3532); int n2791; INV_X1( &n2865, &n2791); int n2926; OAI21_X1( &n2136, &n2747, &n2935, &n2926); int nullval24; DFFS_X1( &n1628, rst_n, clk, &nullval24, &a1_w[5]); int n1623; INV_X1( &a1_i[10], &n1623); int n5488; XOR2_X1( &n5487, &n5486, &n5488); int n4774; OAI21_X1( &n4719, &n4721, &n4720, &n4774); int n4636; XOR2_X1( &n4721, &n4635, &n4636); int n4637; XNOR2_X1( &n4616, &n4615, &n4637); int n4563; OAI21_X1( &n4556, &n4558, &n4557, &n4563); int n4487; OAI21_X1( &n4481, &n4558, &n4482, &n4487); int n4253; OAI21_X1( &n4247, &n4558, &n4248, &n4253); int n4047; XOR2_X1( &n4046, &n4045, &n4047); int n3983; NAND2_X1( &n3918, &n1717, &n3983); int n4777; OAI21_X1( &n3351, &n4472, &n3352, &n4777); int n3278; NAND2_X1( &n3277, &n3276, &n3278); int n3089; XOR2_X1( &n3088, &n3087, &n3089); int n3093; XOR2_X1( &n3033, &n3032, &n3093); int n5304; BUF_X4( &a1_w[5], &n5304); int n2937; NAND2_X1( &n2936, &n2935, &n2937); int n2924; INV_X1( &n3277, &n2924); int n3320; NAND2_X1( &n2923, &n2922, &n3320); int n3319; OR2_X1( &n2922, &n2923, &n3319); int n2919; INV_X1( &n3276, &n2919); int n2888; INV_X1( &n2887, &n2888); int n2882; OAI21_X1( &n2880, &n5524, &n2881, &n2882); int n2867; NAND2_X1( &n2866, &n2865, &n2867); int n2853; NOR2_X1( &n2850, &n2849, &n2853); int n2848; INV_X1( &n2850, &n2848); int n2851; NOR2_X1( &n2850, &n2847, &n2851); int n2829; NOR2_X1( &n5524, &n2828, &n2829); int n2826; NAND2_X1( &n2843, &n2824, &n2826); int n2793; INV_X1( &n2866, &n2793); int n2781; INV_X1( &n2780, &n2781); int n2784; NOR2_X1( &n2780, &n2933, &n2784); int n2786; NOR3_X1( &n2780, &n2934, &n2779, &n2786); int n2782; NAND2_X1( &n2780, &n2776, &n2782); int n2778; INV_X1( &n2936, &n2778); int n2918; NOR2_X1( &n2749, &n2748, &n2918); int n2925; AND2_X1( &n2748, &n2749, &n2925); int n3275; INV_X1( &n2926, &n3275); int n2920; NOR2_X1( &n2722, &n2747, &n2920); int n2765; NOR2_X1( &n2714, &n2713, &n2765); int n2806; OR2_X1( &n2703, &n2702, &n2806); int n2789; OR2_X1( &n2698, &n2697, &n2789); int n2790; NAND2_X1( &n2697, &n2698, &n2790); int n2807; NAND2_X1( &n2702, &n2703, &n2807); int n2694; OR2_X1( &n2693, &n2849, &n2694); int n2695; INV_X1( &n2714, &n2695); int n2873; XNOR2_X1( &n2824, &n2079, &n2873); int n5496; BUF_X4( &a1_w[5], &n5496); int n2945; NAND2_X2( &n5496, &n5680, &n2945); int n1692; OR2_X1( &n4048, &n4047, &n1692); int n5017; AOI22_X1( &n5698, &n5497, &n5496, &n2313, &n5017); int n2708; NAND2_X1( &n2807, &n2696, &n2708); int n2108; INV_X1( &n3532, &n2108); int n2243; NAND2_X1( &n5496, &b1_w[6], &n2243); int n2957; NAND2_X1( &n5304, &n4285, &n2957); int n2135; OR2_X1( &n2924, &n2925, &n2135); int n3155; NAND2_X1( &n2178, &n2243, &n3155); int n2231; INV_X1( &n2765, &n2231); int n2230; NOR2_X2( &n2827, &n2231, &n2230); int n5836; DFFS_X1( &n1623, rst_n, clk, &n5836, &a1_w[10]); int n1621; INV_X1( &a1_i[12], &n1621); int n5499; NAND2_X1( &b1_w[26], &n5496, &n5499); int n5459; NAND2_X1( &n5304, &b1_w[25], &n5459); int n5282; NAND2_X1( &a1_w[10], &b1_w[19], &n5282); int n5306; NAND2_X1( &n5304, &b1_w[24], &n5306); int n5165; NAND2_X1( &n5304, &b1_w[23], &n5165); int n5160, n3353; FA_X1( &n4779, &n4778, &n4777, &n5160, &n3353); int n5179, n4725; FA_X1( &n4776, &n4775, &n4774, &n5179, &n4725); int n4710; NAND2_X1( &n4637, &n4636, &n4710); int n4712; NOR2_X1( &n4637, &n4636, &n4712); int n4572; XNOR2_X1( &n4563, &n4562, &n4572); int n4488; XNOR2_X1( &n4487, &n4486, &n4488); int n4263; XNOR2_X1( &n4253, &n4252, &n4263); int n4103; NAND2_X1( &a1_w[10], &n5597, &n4103); int n4237; NAND2_X1( &n4048, &n4047, &n4237); int n4007; NAND2_X1( &a1_w[10], &n4660, &n4007); int n4004; NAND2_X1( &b1_w[10], &a1_w[10], &n4004); int n3984; INV_X1( &n3983, &n3984); int n3919; NAND2_X1( &n1676, &n3983, &n3919); int n3894; NAND2_X1( &a1_w[10], &n4285, &n3894); int n3589; NAND2_X1( &a1_w[10], &n5710, &n3589); int n3591; NAND2_X1( &a1_w[10], &n5709, &n3591); int n3357; NAND2_X1( &n5304, &b1_w[22], &n3357); int n3362; INV_X1( &n3353, &n3362); int n3332; NAND2_X1( &n5496, &b1_w[21], &n3332); int n3321; NAND2_X1( &n3320, &n3319, &n3321); int n3296; NAND2_X1( &n5304, &b1_w[20], &n3296); int n3286; NAND2_X1( &n5304, &b1_w[19], &n3286); int n2986; NAND2_X1( &n5304, &b1_w[18], &n2986); int n2981; NAND2_X1( &n5304, &b1_w[17], &n2981); int n3246; NAND2_X1( &n2958, &n2957, &n3246); int n3222; NAND2_X1( &n5304, &n5682, &n3222); int n2951; NAND2_X1( &n5304, &n5702, &n2951); int n2950; NAND2_X1( &n5496, &n5681, &n2950); int n3203; NAND2_X1( &n2945, &n2944, &n3203); int n2942; NAND2_X1( &n5304, &n5710, &n2942); int n3204; NOR2_X1( &n2945, &n2944, &n3204); int n5016; NAND2_X2( &n3674, &n5496, &n5016); int n2971; NAND2_X1( &n5304, &b1_w[16], &n2971); int n2973; NAND2_X1( &n5496, &n5602, &n2973); int n2967; NAND2_X1( &n5496, &n5601, &n2967); int n2969; NAND2_X1( &n5496, &n5598, &n2969); int n2961; NAND2_X1( &n5304, &n5597, &n2961); int n2963; NAND2_X1( &n5496, &b1_w[11], &n2963); int n2959; NAND2_X1( &n5496, &n2939, &n2959); int n3245; NOR2_X1( &n2958, &n2957, &n3245); int n3092; XNOR2_X1( &n2938, &n2937, &n3092); int n2930; INV_X1( &n3319, &n2930); int n2927; NOR2_X1( &n2919, &n2918, &n2927); int n3401; NOR3_X1( &n2883, &n1720, &n2882, &n3401); int n2852; INV_X1( &n2851, &n2852); int n2854; NOR2_X1( &n2848, &n2847, &n2854); int n2856; NOR3_X1( &n2848, &n2846, &n2849, &n2856); int n2858; NAND2_X1( &n1840, &n2851, &n2858); int n2812; NAND2_X1( &n2807, &n2806, &n2812); int n2795; NAND2_X1( &n2790, &n2789, &n2795); int n2783; NOR2_X1( &n2781, &n2934, &n2783); int n2777; INV_X1( &n2782, &n2777); int n2766; INV_X1( &n2807, &n2766); int n2752; NOR2_X1( &n2925, &n2918, &n2752); int n3274; NAND2_X1( &n2920, &n2921, &n3274); int n2706; INV_X1( &n2806, &n2706); int n2701; INV_X1( &n2789, &n2701); int n2813; NAND2_X1( &n2866, &n2790, &n2813); int n2864; AOI21_X2( &n2694, &n2695, &n2846, &n2864); int n2293; NAND2_X2( &n5684, &n5496, &n2293); int n3192; NOR2_X2( &n2940, &n2293, &n3192); int n2305; NOR2_X2( &n2243, &n2178, &n2305); int n3587; NAND2_X1( &a1_w[10], &n5680, &n3587); int n1764; AND2_X1( &n3245, &n3246, &n1764); int n2284; INV_X1( &n3245, &n2284); int n2283; INV_X1( &n3246, &n2283); int n2715; NOR2_X1( &n2708, &n2813, &n2715); int n3318; AOI21_X1( &n2135, &n2927, &n2926, &n3318); int n3461; NAND2_X1( &n2615, &a1_w[10], &n3461); int n3237; NOR2_X1( &n2952, &n2951, &n3237); int n2863; INV_X1( &n2230, &n2863); int n3193; NAND2_X1( &n2293, &n2940, &n3193); int n5483; INV_X1( &n5836, &n5483); int nullval25; DFFS_X1( &n1621, rst_n, clk, &nullval25, &a1_w[12]); int n1622; INV_X1( &a1_i[11], &n1622); int n5500; XOR2_X1( &n5499, &n5498, &n5500); int n5485; NAND2_X1( &b1_w[21], &n5483, &n5485); int n5478; NAND2_X1( &b1_w[19], &a1_w[12], &n5478); int n5476; AND2_X1( &b1_w[18], &a1_w[12], &n5476); int n5471; NAND2_X1( &n5483, &b1_w[20], &n5471); int n5286; AND2_X1( &b1_w[17], &a1_w[12], &n5286); int n5251, n4782; FA_X1( &n5181, &n5180, &n5179, &n5251, &n4782); int n5256, n4780; FA_X1( &n5162, &n5161, &n5160, &n5256, &n4780); int n5019; INV_X1( &n5016, &n5019); int n5270; AND2_X1( &b1_w[16], &a1_w[12], &n5270); int n5182; NAND2_X1( &n5483, &b1_w[18], &n5182); int n4781; INV_X1( &n4780, &n4781); int n4877; NAND2_X1( &n5483, &b1_w[17], &n4877); int n4881; AND2_X1( &n5602, &a1_w[12], &n4881); int n4638; INV_X1( &n4712, &n4638); int n4598; AND2_X1( &n5601, &a1_w[12], &n4598); int n4723; NAND2_X1( &n5483, &b1_w[16], &n4723); int n4587; NAND2_X1( &n5483, &n5602, &n4587); int n4508; AND2_X1( &n5598, &a1_w[12], &n4508); int n4547; NAND2_X1( &n4489, &n4488, &n4547); int n4549; NOR2_X1( &n4489, &n4488, &n4549); int n4330; AND2_X1( &b1_w[12], &a1_w[12], &n4330); int n4319; NAND2_X1( &n5483, &n5601, &n4319); int n4271; AND2_X1( &n4660, &a1_w[12], &n4271); int n4257; NAND2_X1( &n5483, &n5598, &n4257); int n4238; INV_X1( &n4237, &n4238); int n4117; AND2_X1( &a1_w[12], &n2939, &n4117); int n4071; AND2_X1( &b1_w[9], &a1_w[12], &n4071); int n4065; AND2_X1( &n5682, &a1_w[12], &n4065); int n4049; NAND2_X1( &n1692, &n4237, &n4049); int n3943; AND2_X1( &n5688, &a1_w[12], &n3943); int n3936; AND2_X1( &b1_w[6], &a1_w[12], &n3936); int n3889; NAND2_X1( &n5483, &n5682, &n3889); int n3832; NAND2_X1( &n5483, &n5702, &n3832); int n3622; AND2_X1( &n5709, &a1_w[12], &n3622); int n3598; AND2_X1( &n5710, &a1_w[12], &n3598); int n3607; NAND2_X1( &n5683, &a1_w[12], &n3607); int n3595; AND2_X1( &n4188, &a1_w[12], &n3595); int n3592; NAND2_X1( &n5483, &n5708, &n3592); int n3584; NAND2_X1( &n5683, &n5483, &n3584); int n3429; NAND2_X1( &n5698, &a1_w[12], &n3429); int n3555; INV_X1( &n3401, &n3555); int n4793; NAND2_X1( &n3358, &n3357, &n4793); int n4791; OR2_X1( &n3358, &n3357, &n4791); int n3354; NAND2_X1( &n3333, &n3332, &n3354); int n4790; OR2_X1( &n3333, &n3332, &n4790); int n3327; NAND2_X1( &n3297, &n3296, &n3327); int n3323; NOR2_X1( &n3297, &n3296, &n3323); int n3326; NAND2_X1( &n3287, &n3286, &n3326); int n3324; NOR2_X1( &n3287, &n3286, &n3324); int n3279; NAND2_X1( &n3275, &n3274, &n3279); int n3247; NAND2_X1( &n2284, &n3246, &n3247); int n3239; INV_X1( &n3237, &n3239); int n3225; OR2_X1( &n3223, &n3222, &n3225); int n3197; OR3_X1( &n5016, &n3196, &n3195, &n3197); int n3194; INV_X1( &n3192, &n3194); int n3189; NOR2_X1( &n5018, &n5016, &n3189); int n3179; INV_X1( &n3204, &n3179); int n3283; NAND2_X1( &n2987, &n2986, &n3283); int n3280; OR2_X1( &n2987, &n2986, &n3280); int n3282; NAND2_X1( &n2982, &n2981, &n3282); int n2984; NOR2_X1( &n2982, &n2981, &n2984); int n3067; NAND2_X1( &n2974, &n2973, &n3067); int n3076; NAND2_X1( &n2972, &n2971, &n3076); int n3122; NAND2_X1( &n2970, &n2969, &n3122); int n3039; NAND2_X1( &n2968, &n2967, &n3039); int n3144; NAND2_X1( &n2964, &n2963, &n3144); int n3106; NAND2_X1( &n2962, &n2961, &n3106); int n3127; NAND2_X1( &n2960, &n2959, &n3127); int n3238; NAND2_X1( &n2952, &n2951, &n3238); int n3224; NAND2_X1( &n3223, &n3222, &n3224); int n3167; NAND2_X1( &n2950, &n2949, &n3167); int n2948; NOR2_X1( &n3223, &n3222, &n2948); int n3153; NOR2_X1( &n2950, &n2949, &n3153); int n3207; NAND2_X1( &n2943, &n2942, &n3207); int n3206; NOR2_X1( &n2943, &n2942, &n3206); int n2941; NOR3_X1( &n5016, &n3195, &n3196, &n2941); int n3075; NOR2_X1( &n2972, &n2971, &n3075); int n3068; NOR2_X1( &n2974, &n2973, &n3068); int n3038; NOR2_X1( &n2968, &n2967, &n3038); int n3034; NOR2_X1( &n2970, &n2969, &n3034); int n3105; NOR2_X1( &n2962, &n2961, &n3105); int n3101; NOR2_X1( &n2964, &n2963, &n3101); int n3126; NOR2_X1( &n2960, &n2959, &n3126); int n2928; INV_X1( &n3318, &n2928); int n3317; NAND3_X1( &n2921, &n2920, &n2927, &n3317); int n2884; INV_X1( &n3401, &n2884); int n2855; OAI22_X1( &n2854, &n2853, &n2852, &n2871, &n2855); int n2815; INV_X1( &n2812, &n2815); int n2810; NOR2_X1( &n2812, &n2813, &n2810); int n2796; NAND2_X1( &n2866, &n2795, &n2796); int n2800; NOR2_X1( &n2795, &n2793, &n2800); int n2794; INV_X1( &n2795, &n2794); int n2785; OAI22_X1( &n2784, &n2783, &n2782, &n2935, &n2785); int n2788; NAND2_X1( &n2778, &n2777, &n2788); int n2768; NOR2_X1( &n2813, &n2766, &n2768); int n2755; NAND2_X1( &n2752, &n3277, &n2755); int n2760; NAND2_X1( &n2752, &n3276, &n2760); int n2753; INV_X1( &n2752, &n2753); int n2759; INV_X1( &n3274, &n2759); int n5523; AND2_X1( &n2715, &n2765, &n5523); int n2707; NOR2_X1( &n2706, &n2763, &n2707); int n2811; OR2_X1( &n2701, &n2791, &n2811); int n2809; INV_X1( &n2864, &n2809); int n3490; NOR2_X1( &n2538, &n3461, &n3490); int n2369; AND2_X1( &n3327, &n3326, &n2369); int n3235; OAI21_X2( &n3155, &n2305, &n3167, &n3235); int n3156; INV_X1( &n2305, &n3156); int n3603; NAND2_X2( &a1_w[12], &n2615, &n3603); int n3448; NAND2_X4( &n2199, &n3603, &n3448); int n3711; INV_X1( &n3461, &n3711); int n3449; NOR2_X2( &n2199, &n3603, &n3449); int n3516; OAI21_X4( &n3448, &n3449, &n3447, &n3516); int n3489; NAND2_X2( &n3461, &n2538, &n3489); int n2110; NAND2_X2( &n3489, &n3487, &n2110); int n3511; NAND2_X1( &n3448, &n3446, &n3511); int n2953; NAND2_X1( &n3224, &n3238, &n2953); int n1956; NOR2_X1( &n2230, &n2809, &n1956); int n2890; XNOR2_X1( &n2867, &n1956, &n2890); int n2808; INV_X1( &n2863, &n2808); int n1863; NAND2_X1( &n3461, &n3584, &n1863); int n3218; OR2_X1( &n3153, &n2305, &n3218); int n3141; OAI21_X1( &n3127, &n3246, &n3126, &n3141); int n5213; NAND2_X2( &n5524, &n5523, &n5213); int n5844; DFFS_X1( &n1622, rst_n, clk, &n5844, &a1_w[11]); int n1620; INV_X1( &a1_i[13], &n1620); int n5512; XNOR2_X1( &n5501, &n5500, &n5512); int n5484; NAND2_X1( &b1_w[20], &a1_w[11], &n5484); int n5325; INV_X1( &n5523, &n5325); int n5544, n5163; FA_X1( &n5258, &n5257, &n5256, &n5544, &n5163); int n5547, n5186; FA_X1( &n5253, &n5252, &n5251, &n5547, &n5186); int n5169; INV_X1( &n5163, &n5169); int n5042; AOI21_X1( &n5017, &n5019, &n5018, &n5042); int n4794; INV_X1( &n4793, &n4794); int n4796; AND2_X1( &n4791, &n4790, &n4796); int n5173; NAND2_X1( &n4782, &n4781, &n5173); int n5176; OR2_X1( &n4782, &n4781, &n5176); int n4639; NAND2_X1( &n4638, &n4710, &n4639); int n4588; NAND2_X1( &a1_w[11], &n5601, &n4588); int n4490; INV_X1( &n4549, &n4490); int n4318; NAND2_X1( &a1_w[11], &n5598, &n4318); int n4258; NAND2_X1( &a1_w[11], &n5597, &n4258); int n4104; NAND2_X1( &a1_w[11], &b1_w[11], &n4104); int n4006; NAND2_X1( &n2939, &a1_w[11], &n4006); int n4005; NAND2_X1( &a1_w[11], &n5707, &n4005); int n3890; NAND2_X1( &a1_w[11], &n5702, &n3890); int n3833; NAND2_X1( &a1_w[11], &n5708, &n3833); int n3605; INV_X1( &n3603, &n3605); int n3593; NAND2_X1( &a1_w[11], &n5709, &n3593); int n3588; NAND2_X1( &a1_w[11], &n4188, &n3588); int n5280; INV_X1( &n5844, &n5280); int n3491; INV_X1( &n3489, &n3491); int n3585; NAND2_X1( &n3674, &a1_w[11], &n3585); int n3450; INV_X1( &n3448, &n3450); int n3433; OAI21_X1( &n3431, &n3516, &n3432, &n3433); int n3434; NOR2_X1( &n3511, &n3432, &n3434); int n3410; INV_X1( &n3555, &n3410); int n3359; NAND2_X1( &n4791, &n4793, &n3359); int n4795; INV_X1( &n3354, &n4795); int n3334; NAND2_X1( &n4790, &n3354, &n3334); int n3329; OR2_X1( &n3324, &n3323, &n3329); int n3322; NAND2_X1( &n3318, &n3317, &n3322); int n3298; INV_X1( &n3323, &n3298); int n3291; INV_X1( &n3326, &n3291); int n3292; INV_X1( &n3324, &n3292); int n3284; INV_X1( &n3283, &n3284); int n3285; INV_X1( &n3282, &n3285); int n3338; XOR2_X1( &n3279, &n3278, &n3338); int n3240; NAND2_X1( &n3239, &n3238, &n3240); int n3226; NAND2_X1( &n3225, &n3224, &n3226); int n3219; INV_X1( &n3235, &n3219); int n3221; NOR2_X1( &n3218, &n3237, &n3221); int n3208; INV_X1( &n3206, &n3208); int n3198; NAND2_X1( &n3194, &n3193, &n3198); int n5010; XNOR2_X1( &n3190, &n3189, &n5010); int n3180; NAND2_X1( &n3179, &n3203, &n3180); int n3157; NAND2_X1( &n3156, &n3155, &n3157); int n3154; INV_X1( &n3167, &n3154); int n3168; INV_X1( &n3153, &n3168); int n3142; INV_X1( &n3141, &n3142); int n3128; INV_X1( &n3126, &n3128); int n3107; INV_X1( &n3105, &n3107); int n3102; INV_X1( &n3144, &n3102); int n3145; INV_X1( &n3101, &n3145); int n3077; INV_X1( &n3075, &n3077); int n3054; INV_X1( &n3068, &n3054); int n3040; INV_X1( &n3038, &n3040); int n3035; INV_X1( &n3122, &n3035); int n3123; INV_X1( &n3034, &n3123); int n2988; NAND2_X1( &n3280, &n3283, &n2988); int n3281; INV_X1( &n2984, &n3281); int n2975; NAND2_X1( &n3076, &n3067, &n2975); int n3066; NAND2_X1( &n3039, &n3122, &n3066); int n2965; NAND2_X1( &n3106, &n3144, &n2965); int n2954; NOR2_X1( &n3237, &n2948, &n2954); int n2946; NAND2_X1( &n3207, &n3203, &n2946); int n2947; NOR2_X1( &n3204, &n3206, &n2947); int n3178; OAI21_X2( &n3193, &n2941, &n3192, &n3178); int n2976; NOR2_X1( &n3068, &n3075, &n2976); int n3063; NOR2_X1( &n3034, &n3038, &n3063); int n2966; NOR2_X1( &n3101, &n3105, &n2966); int n3140; NOR2_X1( &n3245, &n3126, &n3140); int n2929; NAND2_X1( &n2928, &n3319, &n2929); int n2857; AOI21_X1( &n2855, &n2870, &n2856, &n2857); int n2817; AOI21_X1( &n2811, &n2813, &n2812, &n2817); int n2818; INV_X1( &n2810, &n2818); int n2820; NOR3_X1( &n2809, &n2815, &n2811, &n2820); int n2822; NAND2_X1( &n2230, &n2810, &n2822); int n2801; INV_X1( &n2800, &n2801); int n2797; NAND2_X1( &n2794, &n2865, &n2797); int n2792; NOR2_X1( &n2794, &n2791, &n2792); int n2787; AOI21_X1( &n2785, &n2786, &n2936, &n2787); int n2770; INV_X1( &n2768, &n2770); int n2761; NOR2_X1( &n3274, &n2760, &n2761); int n2754; NAND2_X1( &n3276, &n2753, &n2754); int n2756; INV_X1( &n2760, &n2756); int n2758; NAND3_X1( &n3275, &n2753, &n3277, &n2758); int n2814; INV_X1( &n2811, &n2814); int n4589; NAND2_X1( &n4588, &n4587, &n4589); int n2352; AND2_X1( &n2797, &n2796, &n2352); int n2336; OR2_X1( &n4795, &n4794, &n2336); int n3201; XOR2_X1( &n3198, &n3197, &n3201); int n2164; AOI21_X2( &n3490, &n3486, &n3489, &n2164); int n2165; NOR3_X2( &n2110, &n5049, &n2204, &n2165); int n2891; INV_X1( &n2890, &n2891); int n3690; NOR2_X1( &n3589, &n3588, &n3690); int n3586; NAND2_X1( &a1_w[11], &n5683, &n3586); int n1892; AOI21_X2( &n2946, &n3178, &n2947, &n1892); int n2163; OAI21_X2( &n2164, &n3466, &n2110, &n2163); int n1755; NOR2_X1( &n3556, &n3410, &n1755); int n1727; AND2_X1( &n4490, &n4547, &n1727); int n1725; AND2_X1( &n3145, &n3144, &n1725); int n2360; OR2_X1( &n3201, &n3200, &n2360); int n3710; AOI22_X1( &n5698, &a1_w[10], &a1_w[11], &n2313, &n3710); int n3712; INV_X1( &n3585, &n3712); int n1981; INV_X1( &n3218, &n1981); int n3742; NAND2_X1( &n1863, &n3712, &n3742); int n2378; OR2_X1( &n3586, &n3587, &n2378); int n3120; AOI21_X1( &n2965, &n3141, &n2966, &n3120); int n2955; AOI21_X1( &n2953, &n3235, &n2954, &n2955); int n1681; DFFS_X1( &n1620, rst_n, clk, &n1681, &a1_w[13]); int n1619; INV_X1( &a1_i[14], &n1619); int n5550, n5261; FA_X1( &n5549, &n5548, &n5547, &n5550, &n5261); int n5551, n5259; FA_X1( &n5546, &n5545, &n5544, &n5551, &n5259); int n5489; XNOR2_X1( &n5485, &n5484, &n5489); int n5477; NAND2_X1( &b1_w[18], &a1_w[13], &n5477); int n5475; AND2_X1( &b1_w[17], &a1_w[13], &n5475); int n5470; NAND2_X1( &n5280, &b1_w[19], &n5470); int n5285; AND2_X1( &b1_w[16], &a1_w[13], &n5285); int n5260; INV_X1( &n5259, &n5260); int n5281; NAND2_X1( &n5280, &b1_w[18], &n5281); int n5174; INV_X1( &n5173, &n5174); int n5727; NAND2_X1( &n5043, &n5042, &n5727); int n5726; NOR2_X1( &n5043, &n5042, &n5726); int n5044; XNOR2_X1( &n5011, &n5010, &n5044); int n5269; AND2_X1( &n5602, &a1_w[13], &n5269); int n5183; NAND2_X1( &n5280, &b1_w[17], &n5183); int n4783; NAND2_X1( &n5176, &n5173, &n4783); int n4876; NAND2_X1( &n5280, &b1_w[16], &n4876); int n4880; AND2_X1( &n5601, &a1_w[13], &n4880); int n4597; AND2_X1( &n5598, &a1_w[13], &n4597); int n4590; NOR2_X1( &n4587, &n4588, &n4590); int n4724; NAND2_X1( &n5280, &n5602, &n4724); int n4571; XOR2_X1( &n4587, &n4588, &n4571); int n4509; AND2_X1( &a1_w[13], &n5597, &n4509); int n4331; AND2_X1( &n4660, &a1_w[13], &n4331); int n4565; NAND2_X1( &n4319, &n4318, &n4565); int n4566; NOR2_X1( &n4319, &n4318, &n4566); int n4272; AND2_X1( &a1_w[13], &n2939, &n4272); int n4311; NAND2_X1( &n4258, &n4257, &n4311); int n4313; NOR2_X1( &n4258, &n4257, &n4313); int n4118; AND2_X1( &b1_w[9], &a1_w[13], &n4118); int n4312; NAND2_X1( &n4104, &n4103, &n4312); int n4309; NOR2_X1( &n4104, &n4103, &n4309); int n4072; AND2_X1( &n1793, &a1_w[13], &n4072); int n4066; AND2_X1( &n5688, &a1_w[13], &n4066); int n4098; NAND2_X1( &n4007, &n4006, &n4098); int n4100; NOR2_X1( &n4007, &n4006, &n4100); int n4099; NAND2_X1( &n4005, &n4004, &n4099); int n4097; NOR2_X1( &n4005, &n4004, &n4097); int n3944; AND2_X1( &b1_w[6], &a1_w[13], &n3944); int n3937; AND2_X1( &n5709, &a1_w[13], &n3937); int n3895; NAND2_X1( &n5280, &n5682, &n3895); int n3997; NAND2_X1( &n3890, &n3889, &n3997); int n3994; NOR2_X1( &n3890, &n3889, &n3994); int n3888; NAND2_X1( &n3833, &n3832, &n3888); int n3884; NOR2_X1( &n3833, &n3832, &n3884); int n3720; AOI21_X1( &n3710, &n3712, &n3711, &n3720); int n3623; AND2_X1( &n5710, &a1_w[13], &n3623); int n3601; INV_X1( &n3690, &n3601); int n3597; AND2_X1( &n5405, &a1_w[13], &n3597); int n3604; NAND2_X1( &n3674, &a1_w[13], &n3604); int n3596; AND2_X1( &n5683, &a1_w[13], &n3596); int n3887; NAND2_X1( &n3593, &n3592, &n3887); int n3885; NOR2_X1( &n3593, &n3592, &n3885); int n3689; NAND2_X1( &n3589, &n3588, &n3689); int n3590; NAND2_X1( &n5280, &n5710, &n3590); int n3741; NAND2_X1( &n3587, &n3586, &n3741); int n3492; NOR2_X1( &n3491, &n3490, &n3492); int n3462; NOR2_X1( &n3711, &n3585, &n3462); int n3451; NOR2_X1( &n3450, &n3449, &n3451); int n3342; XOR2_X1( &n3322, &n3321, &n3342); int n3299; NAND2_X1( &n3298, &n3327, &n3299); int n3288; NAND2_X1( &n3292, &n3326, &n3288); int n3328; NOR2_X1( &n3285, &n3284, &n3328); int n3325; NAND2_X1( &n3281, &n3280, &n3325); int n3220; OAI21_X1( &n3238, &n3219, &n3237, &n3220); int n3209; NAND2_X1( &n3208, &n3207, &n3209); int n5050; NAND2_X1( &n3201, &n3200, &n5050); int n3191; INV_X1( &n5010, &n3191); int n3205; INV_X1( &n3178, &n3205); int n3169; NAND2_X1( &n3168, &n3167, &n3169); int n3143; INV_X1( &n3140, &n3143); int n3129; NAND2_X1( &n3128, &n3127, &n3129); int n3124; NAND2_X1( &n3123, &n3122, &n3124); int n3108; NAND2_X1( &n3107, &n3106, &n3108); int n3103; AOI21_X1( &n3102, &n3141, &n3145, &n3103); int n3104; NAND2_X1( &n3140, &n3145, &n3104); int n3078; NAND2_X1( &n3077, &n3076, &n3078); int n3069; INV_X1( &n3066, &n3069); int n3064; INV_X1( &n3063, &n3064); int n3055; NAND2_X1( &n3054, &n3067, &n3055); int n3041; NAND2_X1( &n3040, &n3039, &n3041); int n3071; INV_X1( &n3120, &n3071); int n2983; NAND2_X1( &n3281, &n3282, &n2983); int n2977; AOI21_X1( &n2975, &n2976, &n3066, &n2977); int n2978; NAND2_X1( &n3063, &n2976, &n2978); int n3121; NAND2_X1( &n3140, &n2966, &n3121); int n4786; OAI211_X1( &n3320, &n2929, &n3317, &n2930, &n4786); int n2886; NAND2_X1( &n2858, &n2857, &n2886); int n2816; NOR2_X1( &n2815, &n2814, &n2816); int n2802; NOR2_X1( &n2863, &n2801, &n2802); int n2798; AOI21_X1( &n2352, &n2809, &n2800, &n2798); int n2799; NAND2_X1( &n2792, &n2864, &n2799); int n2898; NAND2_X1( &n2788, &n2787, &n2898); int n2767; OAI21_X1( &n2806, &n2814, &n2766, &n2767); int n2757; AOI22_X1( &n2756, &n2926, &n2755, &n2754, &n2757); int n2709; OAI21_X1( &n2707, &n2708, &n2814, &n2709); int n2350; OR2_X1( &n4723, &n4724, &n2350); int n2342; OR2_X1( &n5182, &n5183, &n2342); int n5051; NOR2_X2( &n5011, &n3191, &n5051); int n3612; AOI21_X2( &n3604, &n3603, &n3607, &n3612); int n2198; INV_X1( &n3612, &n2198); int n3430; NOR2_X2( &n2165, &n2163, &n3430); int n3236; INV_X2( &n1892, &n3236); int n1857; XOR2_X1( &n5281, &n5282, &n1857); int n1854; XOR2_X1( &n4876, &n4877, &n1854); int n3420; NAND2_X2( &n2887, &n2886, &n3420); int n5528; AOI21_X2( &n2709, &n2809, &n2715, &n5528); int n1788; XNOR2_X1( &n5269, &n5270, &n1788); int n1770; OR2_X1( &n1681, &n1760, &n1770); int n1735; AND2_X1( &n4724, &n4723, &n1735); int n1980; INV_X1( &n3741, &n1980); int n2032; INV_X1( &n3129, &n2032); int n1674; XNOR2_X1( &n3205, &n3180, &n1674); int n3471; NAND2_X1( &n1702, &n1674, &n3471); int n3241; AOI21_X1( &n3235, &n1981, &n3236, &n3241); int n3691; AOI21_X1( &n1980, &n3742, &n2378, &n3691); int n2030; OAI22_X1( &n2032, &n1764, &n3129, &n2283, &n2030); int n1787; NAND2_X1( &n5270, &n5269, &n1787); int n1786; OR2_X1( &n5270, &n5269, &n1786); int n2956; NAND2_X1( &n1981, &n2954, &n2956); int n1855; NAND2_X1( &n5282, &n5281, &n1855); int n1856; NOR2_X1( &n5281, &n5282, &n1856); int n1852; NOR2_X1( &n4876, &n4877, &n1852); int n1851; NAND2_X1( &n4877, &n4876, &n1851); int n2029; NOR2_X1( &n2032, &n2283, &n2029); int n2031; NAND2_X1( &n2284, &n2032, &n2031); int n2053; OR2_X1( &n3430, &n3511, &n2053); int n3692; NOR2_X2( &n3590, &n3591, &n3692); int n2247; INV_X1( &n2955, &n2247); int n3522; BUF_X2( &n3430, &n3522); int n5060; XOR2_X1( &n2277, &n3492, &n5060); int nullval26; DFFS_X1( &n1619, rst_n, clk, &nullval26, &a1_w[14]); int n1617; INV_X1( &a1_i[16], &n1617); int n5552; XOR2_X1( &n5551, &n5550, &n5552); int n5490; XNOR2_X1( &n5489, &n5488, &n5490); int n5482; XNOR2_X1( &n5478, &n5477, &n5482); int n5455; NAND2_X1( &n5261, &n5260, &n5455); int n5456; NOR2_X1( &n5261, &n5260, &n5456); int n5052; NAND2_X1( &n2360, &n5050, &n5052); int n5731; NAND2_X1( &n5045, &n5044, &n5731); int n5733; OAI21_X1( &n5727, &n5726, &n5729, &n5733); int n5732; OR2_X1( &n5045, &n5044, &n5732); int n4878; XNOR2_X1( &n5183, &n5182, &n4878); int n5216, n2932; FA_X1( &n4788, &n4787, &n4786, &n5216, &n2932); int n4703; NAND2_X1( &n4598, &n4597, &n4703); int n4704; NOR2_X1( &n4598, &n4597, &n4704); int n4592; XNOR2_X1( &n4724, &n4723, &n4592); int n4593; NAND2_X1( &n4509, &n4508, &n4593); int n4595; OR2_X1( &n4509, &n4508, &n4595); int n4505; NAND2_X1( &n4331, &n4330, &n4505); int n4506; NOR2_X1( &n4331, &n4330, &n4506); int n4320; INV_X1( &n4566, &n4320); int n4314; OAI21_X1( &n4311, &n4313, &n4312, &n4314); int n4316; NOR2_X1( &n4309, &n4313, &n4316); int n4326; NAND2_X1( &n4272, &n4271, &n4326); int n4323; NOR2_X1( &n4272, &n4271, &n4323); int n4259; INV_X1( &n4313, &n4259); int n4254; INV_X1( &n4312, &n4254); int n4325; NAND2_X1( &n4118, &n4117, &n4325); int n4324; NOR2_X1( &n4118, &n4117, &n4324); int n4255; INV_X1( &n4309, &n4255); int n4315; OAI21_X1( &n4098, &n4100, &n4099, &n4315); int n4310; NOR2_X1( &n4097, &n4100, &n4310); int n4110; NAND2_X1( &n4072, &n4071, &n4110); int n4106; NOR2_X1( &n4072, &n4071, &n4106); int n4109; NAND2_X1( &n4066, &n4065, &n4109); int n4107; NOR2_X1( &n4066, &n4065, &n4107); int n4057; INV_X1( &n4097, &n4057); int n4008; INV_X1( &n4100, &n4008); int n4062; NAND2_X1( &n3944, &n3943, &n4062); int n4059; NOR2_X1( &n3944, &n3943, &n4059); int n4061; NAND2_X1( &n3937, &n3936, &n4061); int n4060; NOR2_X1( &n3937, &n3936, &n4060); int n3926; INV_X1( &n3994, &n3926); int n3996; NAND2_X1( &n3895, &n3894, &n3996); int n3998; NOR2_X1( &n3895, &n3894, &n3998); int n4000; NAND2_X1( &n3888, &n3887, &n4000); int n3995; NOR2_X1( &n3885, &n3884, &n3995); int n3834; INV_X1( &n3884, &n3834); int n3830; INV_X1( &n3887, &n3830); int n3743; NAND2_X1( &n2378, &n3741, &n3743); int n5073; NAND2_X1( &n3721, &n3720, &n5073); int n5072; NOR2_X1( &n3721, &n3720, &n5072); int n3694; INV_X1( &n3692, &n3694); int n3696; OAI21_X1( &n3689, &n3691, &n3690, &n3696); int n3932; NAND2_X1( &n3623, &n3622, &n3932); int n3930; NOR2_X1( &n3623, &n3622, &n3930); int n3606; NOR2_X1( &n3605, &n3604, &n3606); int n3602; NAND2_X1( &n3601, &n3689, &n3602); int n3931; NAND2_X1( &n3598, &n3597, &n3931); int n3929; NOR2_X1( &n3598, &n3597, &n3929); int n3610; NAND2_X1( &n3596, &n3595, &n3610); int n3609; NOR2_X1( &n3596, &n3595, &n3609); int n3831; INV_X1( &n3885, &n3831); int n3693; NAND2_X1( &n3591, &n3590, &n3693); int n3502; INV_X1( &n5060, &n3502); int n3463; XNOR2_X1( &n3584, &n3462, &n3463); int n3548; INV_X2( &n3430, &n3548); int n3445; XOR2_X1( &n3429, &n1770, &n3445); int n3415; INV_X1( &n3420, &n3415); int n4797; OAI21_X1( &n2369, &n3329, &n3328, &n4797); int n4792; NOR2_X1( &n3329, &n3325, &n4792); int n3293; INV_X1( &n3328, &n3293); int n3290; INV_X1( &n3325, &n3290); int n3257; XNOR2_X1( &n3241, &n3240, &n3257); int n3227; AOI21_X1( &n3220, &n3236, &n3221, &n3227); int n3210; OAI21_X1( &n3203, &n3205, &n3204, &n3210); int n3202; INV_X1( &n5050, &n3202); int n3170; XNOR2_X1( &n3236, &n3169, &n3170); int n3158; AOI21_X2( &n3154, &n3236, &n3168, &n3158); int n3070; OAI21_X1( &n3067, &n3069, &n3068, &n3070); int n3072; NOR2_X1( &n3064, &n3068, &n3072); int n3052; AOI21_X1( &n3066, &n3071, &n3063, &n3052); int n3036; AOI21_X1( &n3035, &n3071, &n3123, &n3036); int n3065; INV_X1( &n3121, &n3065); int n2979; OAI21_X1( &n2977, &n2978, &n3120, &n2979); int n2980; NOR2_X1( &n3121, &n2978, &n2980); int n5210; INV_X1( &n5528, &n5210); int n2889; INV_X1( &n2886, &n2889); int n2819; OAI22_X1( &n2864, &n2818, &n2817, &n2816, &n2819); int n2803; OAI21_X1( &n2798, &n2808, &n2799, &n2803); int n2805; INV_X1( &n2898, &n2805); int n2769; AOI21_X1( &n2767, &n2809, &n2768, &n2769); int n2762; OAI21_X1( &n2757, &n2759, &n2758, &n2762); int n3261; AND2_X2( &n3256, &n3257, &n3261); int n2275; AOI21_X2( &n3433, &n3548, &n3434, &n2275); int n3934; OAI21_X2( &n3610, &n2198, &n3609, &n3934); int n3470; NOR2_X2( &n1674, &n1702, &n3470); int n3494; NAND2_X1( &n2121, &n3170, &n3494); int n3216; INV_X1( &n3170, &n3216); int n1862; NOR2_X1( &n3690, &n3692, &n1862); int n2719; NAND2_X2( &n5528, &n5213, &n2719); int n2248; NOR2_X2( &n1892, &n2956, &n2248); int n1709; XOR2_X1( &n3210, &n3209, &n1709); int n1849; NAND3_X1( &n3742, &n2378, &n1862, &n1849); int n2292; INV_X1( &n3261, &n2292); int n4113; NOR2_X1( &n4107, &n4106, &n4113); int n2276; OAI21_X2( &n3516, &n3522, &n3511, &n2276); int n1861; OAI21_X2( &n3693, &n3692, &n3689, &n1861); int n1672; BUF_X2( &a1_w[14], &n1672); int n3474; AOI21_X2( &n3202, &n2360, &n5051, &n3474); int n5000; OAI21_X2( &n3471, &n3474, &n3470, &n5000); int n2720; XNOR2_X1( &n2719, &n2718, &n2720); int n1897; XOR2_X1( &n3548, &n3454, &n1897); int n1695; DFFS_X1( &n1617, rst_n, clk, &n1695, &a1_w[16]); int n1618; INV_X1( &a1_i[15], &n1618); int n5603; NAND2_X1( &a1_w[16], &n5602, &n5603); int n5480; NAND2_X1( &b1_w[17], &n1672, &n5480); int n5595; AND2_X1( &a1_w[16], &n5601, &n5595); int n5467; NAND2_X1( &n1672, &b1_w[16], &n5467); int n5393; AND2_X1( &a1_w[16], &n5598, &n5393); int n5387; NAND2_X1( &n1672, &n5602, &n5387); int n5262; INV_X1( &n5456, &n5262); int n5300, n4789; FA_X1( &n5218, &n5217, &n5216, &n5300, &n4789); int n5211; AOI21_X1( &n5208, &n5210, &n5209, &n5211); int n5074; INV_X1( &n5072, &n5074); int n5053; XNOR2_X1( &n5052, &n5051, &n5053); int n5046; INV_X1( &n5731, &n5046); int n5359; AND2_X1( &a1_w[16], &b1_w[12], &n5359); int n5266; NAND2_X1( &n5601, &n1672, &n5266); int n4831; AOI21_X1( &n5329, &n5210, &n5324, &n4831); int n4798; AOI21_X1( &n2336, &n4797, &n4796, &n4798); int n4799; NAND2_X1( &n4792, &n4796, &n4799); int n4803; INV_X1( &n4789, &n4803); int n4869; AND2_X1( &n4660, &a1_w[16], &n4869); int n4865; NAND2_X1( &n5598, &n1672, &n4865); int n4669; AND2_X1( &a1_w[16], &n2939, &n4669); int n4661; NAND2_X1( &n5597, &n1672, &n4661); int n4599; INV_X1( &n4704, &n4599); int n4594; INV_X1( &n4593, &n4594); int n4529; AND2_X1( &b1_w[9], &a1_w[16], &n4529); int n4510; NAND2_X1( &n4595, &n4593, &n4510); int n4503; NAND2_X1( &n1672, &b1_w[11], &n4503); int n4361; AND2_X1( &n1793, &a1_w[16], &n4361); int n4358; AND2_X1( &n5688, &a1_w[16], &n4358); int n4356; AND2_X1( &b1_w[6], &a1_w[16], &n4356); int n4353; AND2_X1( &n5710, &a1_w[16], &n4353); int n4351; AND2_X1( &b1_w[5], &a1_w[16], &n4351); int n4342; NAND2_X1( &n2939, &n1672, &n4342); int n4332; INV_X1( &n4506, &n4332); int n4327; NAND2_X1( &n4326, &n4325, &n4327); int n4328; NOR2_X1( &n4324, &n4323, &n4328); int n4321; NAND2_X1( &n4320, &n4565, &n4321); int n4567; AOI21_X1( &n4314, &n4316, &n4315, &n4567); int n4564; NAND2_X1( &n4310, &n4316, &n4564); int n4286; NAND2_X1( &n1672, &n5707, &n4286); int n4279; NAND2_X1( &n1672, &n1793, &n4279); int n4273; INV_X1( &n4323, &n4273); int n4260; NAND2_X1( &n4259, &n4311, &n4260); int n4156; AND2_X1( &n4188, &a1_w[16], &n4156); int n4119; INV_X1( &n4324, &n4119); int n4111; NAND2_X1( &n4110, &n4109, &n4111); int n4105; NAND2_X1( &n4255, &n4312, &n4105); int n4101; INV_X1( &n4315, &n4101); int n4102; INV_X1( &n4310, &n4102); int n4086; NAND2_X1( &n1672, &n5688, &n4086); int n4083; NAND2_X1( &n1672, &n5708, &n4083); int n4073; INV_X1( &n4106, &n4073); int n4068; INV_X1( &n4109, &n4068); int n4069; INV_X1( &n4107, &n4069); int n4112; NAND2_X1( &n4062, &n4061, &n4112); int n4108; NOR2_X1( &n4060, &n4059, &n4108); int n4058; NAND2_X1( &n4057, &n4099, &n4058); int n4009; NAND2_X1( &n4008, &n4098, &n4009); int n3999; OAI21_X1( &n3996, &n3998, &n3997, &n3999); int n4001; NOR2_X1( &n3994, &n3998, &n4001); int n3949; NAND2_X1( &n1672, &n5709, &n3949); int n3945; INV_X1( &n4059, &n3945); int n3940; INV_X1( &n4061, &n3940); int n3941; INV_X1( &n4060, &n3941); int n3933; NAND2_X1( &n3932, &n3931, &n3933); int n3935; NOR2_X1( &n3930, &n3929, &n3935); int n3927; NAND2_X1( &n3926, &n3997, &n3927); int n3896; INV_X1( &n3998, &n3896); int n3891; INV_X1( &n4000, &n3891); int n3886; INV_X1( &n3995, &n3886); int n3835; NAND2_X1( &n3834, &n3888, &n3835); int n3744; XOR2_X1( &n3743, &n3742, &n3744); int n3778; OAI21_X1( &n5073, &n5072, &n3722, &n3778); int n3695; NAND2_X1( &n3694, &n3693, &n3695); int n3650; NAND2_X1( &n1672, &n5710, &n3650); int n3631; NAND2_X1( &n1672, &n4188, &n3631); int n3624; INV_X1( &n3930, &n3624); int n3611; INV_X1( &n3609, &n3611); int n3800; XNOR2_X1( &n3607, &n3606, &n3800); int n3799; XOR2_X1( &n3691, &n3602, &n3799); int n3599; INV_X1( &n3929, &n3599); int n3621; INV_X1( &n3934, &n3621); int n3594; NAND2_X1( &n3831, &n3887, &n3594); int n3627; NAND2_X1( &n5683, &n1672, &n3627); int n3535; NAND2_X1( &n5698, &a1_w[16], &n3535); int n3472; INV_X1( &n3470, &n3472); int n4985; INV_X1( &n3463, &n4985); int n3452; AOI21_X2( &n3447, &n3548, &n3446, &n3452); int n3355; AOI21_X1( &n4795, &n4797, &n4790, &n3355); int n3356; NAND2_X1( &n4792, &n4790, &n3356); int n3330; INV_X1( &n4797, &n3330); int n3331; INV_X1( &n4792, &n3331); int n3294; AOI21_X1( &n3291, &n3293, &n3292, &n3294); int n3295; NAND2_X1( &n3290, &n3292, &n3295); int n3767; NOR2_X1( &n3257, &n3256, &n3767); int n3258; XNOR2_X1( &n3227, &n3226, &n3258); int n3493; NAND2_X1( &n3216, &n3215, &n3493); int n4998; NAND2_X1( &n1709, &n3214, &n4998); int n3217; XNOR2_X2( &n3158, &n3157, &n3217); int n3073; AOI21_X1( &n3070, &n3072, &n3071, &n3073); int n3074; NAND2_X1( &n3065, &n3072, &n3074); int n3053; NAND2_X1( &n3065, &n3063, &n3053); int n3037; NAND2_X1( &n3065, &n3123, &n3037); int n2914; AOI21_X1( &n4829, &n5210, &n4828, &n2914); int n3417; NAND2_X1( &n2889, &n2888, &n3417); int n2821; AOI21_X1( &n2819, &n2863, &n2820, &n2821); int n2899; NOR2_X1( &n2803, &n2802, &n2899); int n2771; OAI21_X1( &n2769, &n2863, &n2770, &n2771); int n2902; NOR2_X1( &n2762, &n2761, &n2902); int n3542; NAND2_X2( &n2615, &n1672, &n3542); int n2353; OR2_X2( &n3258, &n3259, &n2353); int n3435; NOR2_X2( &n2200, &n3542, &n3435); int n2172; XNOR2_X2( &n1731, &n2276, &n2172); int n5098; AND2_X2( &n3445, &n2172, &n5098); int n4999; OR2_X2( &n1709, &n3214, &n4999); int n3456; INV_X1( &n3493, &n3456); int n3458; OR2_X2( &n3217, &n1716, &n3458); int n3457; NAND2_X1( &n3217, &n1716, &n3457); int n3436; NAND2_X4( &n2200, &n3542, &n3436); int n1887; NOR2_X4( &n2248, &n2247, &n1887); int n1886; NAND2_X1( &n2029, &n1887, &n1886); int n2332; XNOR2_X1( &n3247, &n1887, &n2332); int n3079; OAI21_X1( &n3073, &n1887, &n3074, &n3079); int n3042; OAI21_X1( &n3036, &n1887, &n3037, &n3042); int n3056; OAI21_X1( &n3052, &n1887, &n3053, &n3056); int n3125; OAI21_X1( &n3120, &n1887, &n3121, &n3125); int n2246; INV_X1( &n1887, &n2246); int n1850; AOI21_X2( &n1861, &n1980, &n1862, &n1850); int n3925; NAND2_X2( &n1850, &n1849, &n3925); int n5097; NOR2_X2( &n2172, &n3445, &n5097); int n3464; XNOR2_X2( &n3451, &n3452, &n3464); int n2906; INV_X1( &n2720, &n2906); int n2308; NOR2_X1( &n1695, &n1760, &n2308); int n4160; INV_X1( &n2308, &n4160); int n1759; NAND2_X1( &n3420, &n3417, &n1759); int n1740; OR2_X1( &n1887, &n2031, &n1740); int n1900; INV_X1( &n3435, &n1900); int n1721; AND2_X1( &n1900, &n3436, &n1721); int n1707; XOR2_X1( &n3056, &n3055, &n1707); int n1686; AND2_X1( &n5683, &a1_w[16], &n1686); int n3775; AOI21_X1( &n3732, &n3778, &n3777, &n3775); int n2086; NAND2_X1( &n3436, &n3448, &n2086); int n3629; INV_X1( &n3542, &n3629); int n3264; NAND3_X1( &n1740, &n2030, &n1886, &n3264); int n2147; OAI21_X2( &n3142, &n1887, &n3143, &n2147); int n3266; XNOR2_X1( &n1725, &n2147, &n3266); int n3109; OAI21_X1( &n3103, &n1887, &n3104, &n3109); int n2985; AOI21_X1( &n2979, &n2246, &n2980, &n2985); int n3780; INV_X1( &n3767, &n3780); int n2120; NAND2_X1( &n3458, &n3494, &n2120); int n1848; INV_X1( &n3925, &n1848); int n2122; INV_X1( &n4998, &n2122); int n3848; NAND2_X1( &n3062, &n1707, &n3848); int n1668; XOR2_X1( &n3125, &n3124, &n1668); int n3455; AOI21_X2( &n2122, &n5000, &n4999, &n3455); int n4986; INV_X1( &n3464, &n4986); int n1830; OR2_X1( &n3464, &n3463, &n1830); int n1675; DFFS_X1( &n1618, rst_n, clk, &n1675, &a1_w[15]); int n1616; INV_X1( &a1_i[17], &n1616); int n5479; NAND2_X1( &b1_w[16], &a1_w[15], &n5479); int n5466; NAND2_X1( &n5602, &a1_w[15], &n5466); int n5461, n5220; FA_X1( &n5302, &n5301, &n5300, &n5461, &n5220); int n5388; NAND2_X1( &n5601, &a1_w[15], &n5388); int n5263; NAND2_X1( &n5262, &n5455, &n5263); int n5214; OAI21_X1( &n5211, &n5213, &n5212, &n5214); int n5100; INV_X1( &n5097, &n5100); int n5076; NAND2_X1( &n5074, &n5073, &n5076); int n5736; NAND2_X1( &n5054, &n5053, &n5736); int n5735; NOR2_X1( &n5054, &n5053, &n5735); int n5738; AOI21_X1( &n5046, &n5732, &n5733, &n5738); int n5001; NAND2_X1( &n4999, &n4998, &n5001); int n4987; NOR2_X1( &n4986, &n4985, &n4987); int n4979; NOR2_X1( &n5097, &n5098, &n4979); int n5265; NAND2_X1( &n5598, &a1_w[15], &n5265); int n4832; OAI21_X1( &n4831, &n5213, &n5205, &n4832); int n4866; NAND2_X1( &b1_w[12], &a1_w[15], &n4866); int n4662; NAND2_X1( &a1_w[15], &n4660, &n4662); int n4600; NAND2_X1( &n4599, &n4703, &n4600); int n4568; OAI21_X1( &n4565, &n4567, &n4566, &n4568); int n4570; NOR2_X1( &n4564, &n4566, &n4570); int n4502; NAND2_X1( &n2939, &a1_w[15], &n4502); int n4343; NAND2_X1( &a1_w[15], &n5707, &n4343); int n4333; NAND2_X1( &n4332, &n4505, &n4333); int n4287; NAND2_X1( &a1_w[15], &n1793, &n4287); int n4280; NAND2_X1( &a1_w[15], &n5688, &n4280); int n4274; NAND2_X1( &n4273, &n4326, &n4274); int n4120; NAND2_X1( &n4119, &n4325, &n4120); int n4114; AOI21_X1( &n4111, &n4113, &n4112, &n4114); int n4115; NAND2_X1( &n4108, &n4113, &n4115); int n4087; NAND2_X1( &a1_w[15], &n5708, &n4087); int n4084; NAND2_X1( &a1_w[15], &n5709, &n4084); int n4074; NAND2_X1( &n4073, &n4110, &n4074); int n4067; NAND2_X1( &n4069, &n4109, &n4067); int n4063; INV_X1( &n4112, &n4063); int n4064; INV_X1( &n4108, &n4064); int n4002; AOI21_X1( &n3999, &n4001, &n4000, &n4002); int n4003; NAND2_X1( &n3995, &n4001, &n4003); int n3950; NAND2_X1( &a1_w[15], &n5710, &n3950); int n3946; NAND2_X1( &n3945, &n4062, &n3946); int n3938; NAND2_X1( &n3941, &n4061, &n3938); int n4116; AOI21_X1( &n3933, &n3935, &n3934, &n4116); int n3928; AOI21_X1( &n4000, &n3925, &n3995, &n3928); int n3897; NAND2_X1( &n3896, &n3996, &n3897); int n3892; OAI21_X1( &n3997, &n3891, &n3994, &n3892); int n3893; NOR2_X1( &n3886, &n3994, &n3893); int n3836; AOI21_X1( &n3830, &n3925, &n3831, &n3836); int n3801; XNOR2_X1( &n3800, &n3799, &n3801); int n4993; XNOR2_X1( &n3779, &n3778, &n4993); int n3772; NAND2_X1( &n3745, &n3744, &n3772); int n3771; NOR2_X1( &n3745, &n3744, &n3771); int n3748; XOR2_X1( &n3696, &n3695, &n3748); int n3649; NAND2_X1( &a1_w[15], &n5680, &n3649); int n3630; NAND2_X1( &a1_w[15], &n5683, &n3630); int n3625; NAND2_X1( &n3624, &n3932, &n3625); int n3626; OAI21_X1( &n3931, &n3621, &n3929, &n3626); int n3613; NAND2_X1( &n3611, &n3610, &n3613); int n3608; INV_X1( &n3800, &n3608); int n3600; NAND2_X1( &n3599, &n3931, &n3600); int n3620; XOR2_X1( &n3925, &n3594, &n3620); int n3614; NAND2_X1( &n3674, &a1_w[15], &n3614); int n3496; NAND2_X1( &n3494, &n3493, &n3496); int n3473; NAND2_X1( &n3472, &n3471, &n3473); int n3459; NAND2_X1( &n3458, &n3457, &n3459); int n3495; INV_X1( &n3455, &n3495); int n3418; INV_X1( &n3417, &n3418); int n3300; OAI21_X1( &n3294, &n2985, &n3295, &n3300); int n3509; NAND2_X1( &n1668, &n3268, &n3509); int n3440; NAND2_X1( &n2332, &n3262, &n3440); int n3768; NAND2_X1( &n3259, &n3258, &n3768); int n3439; NOR2_X2( &n2332, &n3262, &n3439); int n3438; NAND2_X2( &n2353, &n3780, &n3438); int n3508; NOR2_X2( &n3268, &n1668, &n3508); int n3847; NOR2_X1( &n1707, &n3062, &n3847); int n3269; XOR2_X1( &n3042, &n3041, &n3269); int n2989; OAI21_X1( &n3282, &n2985, &n2984, &n2989); int n2916; OAI21_X1( &n2914, &n5213, &n2915, &n2916); int n2905; INV_X1( &n2902, &n2905); int n3397; NAND2_X1( &n2899, &n2898, &n3397); int n2900; NAND2_X1( &n2822, &n2821, &n2900); int n2804; INV_X1( &n2899, &n2804); int n2903; XNOR2_X1( &n2772, &n2771, &n2903); int n3539; NAND2_X1( &n2308, &n2674, &n3539); int n2349; XNOR2_X1( &n3928, &n3927, &n2349); int n2337; XOR2_X1( &n3079, &n3078, &n2337); int n2324; OR2_X1( &n5387, &n5388, &n2324); int n2323; OR2_X1( &n5467, &n5466, &n2323); int n3444; XNOR2_X2( &n1721, &n2275, &n3444); int n3671; NAND2_X1( &n3265, &n3266, &n3671); int n3670; NOR2_X2( &n3265, &n3266, &n3670); int n2119; INV_X1( &n3457, &n2119); int n1988; NOR2_X2( &n3438, &n3439, &n1988); int n1984; INV_X1( &n3847, &n1984); int n3837; XNOR2_X1( &n3836, &n3835, &n3837); int n2016; AOI21_X4( &n3435, &n1949, &n3436, &n2016); int n3515; NAND2_X2( &n3436, &n2002, &n3515); int n2668; NAND2_X2( &n2673, &n4160, &n2668); int n3787; NAND2_X1( &n3749, &n3748, &n3787); int n3873; NOR2_X2( &n3838, &n3837, &n3873); int n3871; NAND2_X1( &n3837, &n3838, &n3871); int n3958; OAI21_X2( &n3871, &n3873, &n3872, &n3958); int n1859; AOI21_X2( &n3876, &n3962, &n3958, &n1859); int n4569; OAI21_X2( &n4002, &n1848, &n4003, &n4569); int n4988; INV_X1( &n1830, &n4988); int n1899; NAND2_X1( &n1900, &n3515, &n1899); int n2116; NOR2_X2( &n2086, &n1815, &n2116); int n2174; XOR2_X1( &n3109, &n3108, &n2174); int n3545; NAND2_X1( &n3264, &n3263, &n3545); int n3845; NAND2_X1( &n3269, &n3270, &n3845); int n2317; INV_X1( &n3845, &n2317); int n1750; AND2_X1( &n3516, &n2016, &n1750); int n3544; NOR2_X1( &n3264, &n3263, &n3544); int n3781; NAND2_X1( &n2292, &n3780, &n3781); int n3460; AOI21_X1( &n3456, &n3495, &n3494, &n3460); int n3817; NAND2_X1( &n3267, &n2174, &n3817); int n3959; NOR2_X1( &n3873, &n3850, &n3959); int n4800; BUF_X1( &n2985, &n4800); int n2118; AOI21_X1( &n2119, &n3458, &n3456, &n2118); int n3786; NOR2_X1( &n3749, &n3748, &n3786); int n3537; INV_X1( &n2116, &n3537); int n1901; NOR2_X1( &n3786, &n3794, &n1901); int n1860; OAI21_X1( &n3787, &n3786, &n3795, &n1860); int n2311; NOR2_X1( &n1760, &n1675, &n2311); int n3628; INV_X1( &n3614, &n3628); int n3615; AOI21_X1( &n2311, &n5698, &n1672, &n3615); int n1891; AOI21_X1( &n3614, &n3627, &n3542, &n1891); int n3849; NAND2_X1( &n1984, &n3848, &n3849); int n3530; NAND2_X2( &n3550, &n2668, &n3530); int n3979; OR2_X1( &n2337, &n3089, &n3979); int n3974; OAI21_X1( &n3848, &n3845, &n3847, &n3974); int n4329; OAI21_X1( &n4114, &n4116, &n4115, &n4329); int n3398; NAND2_X1( &n2805, &n2804, &n3398); int n3785; OAI21_X1( &n3772, &n3775, &n3771, &n3785); int n3877; AOI21_X2( &n1860, &n3785, &n1901, &n3877); int n3465; XOR2_X1( &n3460, &n3459, &n3465); int n3378; NAND2_X1( &n2902, &n2903, &n3378); int n1685; DFFS_X1( &n1616, rst_n, clk, &n1685, &a1_w[17]); int n1615; INV_X1( &a1_i[18], &n1615); int n5604; NAND2_X1( &a1_w[17], &n5601, &n5604); int n5481; XNOR2_X1( &n5480, &n5479, &n5481); int n5464, n5303; FA_X1( &n5463, &n5462, &n5461, &n5464, &n5303); int n5596; AND2_X1( &a1_w[17], &n5598, &n5596); int n5391; XNOR2_X1( &n5466, &n5467, &n5391); int n5394; AND2_X1( &a1_w[17], &b1_w[12], &n5394); int n5569; INV_X1( &n5303, &n5569); int n5267; XNOR2_X1( &n5388, &n5387, &n5267); int n5077; XNOR2_X1( &n5076, &n5075, &n5077); int n5741; OAI21_X1( &n5736, &n5738, &n5735, &n5741); int n5055; XNOR2_X1( &n5000, &n5001, &n5055); int n4992; NOR2_X1( &n4988, &n4987, &n4992); int n5358; AND2_X1( &n4660, &a1_w[17], &n5358); int n4834; XNOR2_X1( &n4833, &n4832, &n4834); int n5164; OAI21_X1( &n4798, &n4800, &n4799, &n5164); int n4870; AND2_X1( &a1_w[17], &n2939, &n4870); int n4670; AND2_X1( &b1_w[9], &a1_w[17], &n4670); int n4699; NAND2_X1( &n4662, &n4661, &n4699); int n4700; NOR2_X1( &n4662, &n4661, &n4700); int n4528; AND2_X1( &n1793, &a1_w[17], &n4528); int n4656; NAND2_X1( &n4503, &n4502, &n4656); int n4658; OR2_X1( &n4503, &n4502, &n4658); int n4362; AND2_X1( &n5688, &a1_w[17], &n4362); int n4359; AND2_X1( &n5708, &a1_w[17], &n4359); int n4357; AND2_X1( &n5709, &a1_w[17], &n4357); int n4352; AND2_X1( &n4346, &a1_w[17], &n4352); int n4350; AND2_X1( &n5710, &a1_w[17], &n4350); int n4499; NAND2_X1( &n4343, &n4342, &n4499); int n4500; NOR2_X1( &n4343, &n4342, &n4500); int n4338; NAND2_X1( &n4287, &n4286, &n4338); int n4340; OR2_X1( &n4287, &n4286, &n4340); int n4398; NAND2_X1( &n4280, &n4279, &n4398); int n4399; OR2_X1( &n4280, &n4279, &n4399); int n4157; AND2_X1( &n5683, &a1_w[17], &n4157); int n4270; INV_X1( &n4329, &n4270); int n4278; NAND2_X1( &n4087, &n4086, &n4278); int n4276; NOR2_X1( &n4087, &n4086, &n4276); int n4367; NAND2_X1( &n4084, &n4083, &n4367); int n4277; NOR2_X1( &n4084, &n4083, &n4277); int n4070; OAI21_X1( &n4063, &n4116, &n4064, &n4070); int n3975; INV_X1( &n3974, &n3975); int n4079; NAND2_X1( &n3950, &n3949, &n4079); int n4077; NOR2_X1( &n3950, &n3949, &n4077); int n3942; INV_X1( &n4116, &n3942); int n3898; AOI21_X1( &n3892, &n3925, &n3893, &n3898); int n3839; INV_X1( &n3873, &n3839); int n3788; INV_X1( &n3786, &n3788); int n3773; INV_X1( &n3771, &n3773); int n3769; NAND2_X1( &n2353, &n3768, &n3769); int n3672; INV_X1( &n3670, &n3672); int n4078; NAND2_X1( &n3650, &n3649, &n4078); int n4076; NOR2_X1( &n3650, &n3649, &n4076); int n4159; NAND2_X1( &n5698, &a1_w[17], &n4159); int n3647; NAND2_X1( &n3631, &n3630, &n3647); int n3648; NOR2_X1( &n3631, &n3630, &n3648); int n3635; XNOR2_X1( &n3626, &n3625, &n3635); int n3616; AOI21_X1( &n3615, &n3628, &n3629, &n3616); int n3617; XNOR2_X1( &n3613, &n3612, &n3617); int n3792; NOR2_X1( &n3799, &n3608, &n3792); int n3619; XOR2_X1( &n3621, &n3600, &n3619); int n3669; INV_X1( &n3544, &n3669); int n3543; NOR2_X1( &n3629, &n3614, &n3543); int n3540; INV_X1( &n3539, &n3540); int n3538; NOR2_X1( &n3537, &n3536, &n3538); int n3517; NOR2_X1( &n3530, &n3513, &n3517); int n3510; INV_X1( &n3508, &n3510); int n3500; XNOR2_X1( &n3496, &n3495, &n3500); int n3484; XOR2_X1( &n3474, &n3473, &n3484); int n3441; INV_X1( &n3439, &n3441); int n3385; INV_X1( &n3397, &n3385); int n3365; INV_X1( &n3378, &n3365); int n3360; OAI21_X1( &n3355, &n4800, &n3356, &n3360); int n3335; OAI21_X1( &n3330, &n4800, &n3331, &n3335); int n3340; XOR2_X1( &n3300, &n3299, &n3340); int n3289; OAI21_X1( &n3328, &n4800, &n3325, &n3289); int n3846; NOR2_X1( &n3270, &n3269, &n3846); int n3260; INV_X1( &n3768, &n3260); int n3814; NOR2_X1( &n3544, &n3670, &n3814); int n3978; NAND2_X1( &n2337, &n3089, &n3978); int n3094; XOR2_X1( &n2989, &n2988, &n3094); int n3091; XNOR2_X1( &n4800, &n2983, &n3091); int n2931; XNOR2_X1( &n2917, &n2916, &n2931); int n2904; INV_X1( &n2903, &n2904); int n4591; AOI21_X1( &n4568, &n4570, &n4569, &n4591); int n2377; XOR2_X1( &n4571, &n4591, &n2377); int n2371; OR2_X1( &n3617, &n3616, &n2371); int n2333; AND2_X1( &n3510, &n3509, &n2333); int n3541; INV_X1( &n2668, &n3541); int n2272; AOI21_X2( &n3260, &n2353, &n3261, &n2272); int n3816; NOR2_X2( &n2174, &n3267, &n3816); int n3531; OAI21_X2( &n3539, &n3541, &n3549, &n3531); int n3547; OAI21_X4( &n2016, &n3516, &n3515, &n3547); int n3437; OAI21_X2( &n2118, &n3455, &n2120, &n3437); int n1987; NOR2_X2( &n3508, &n3816, &n1987); int n3813; OAI21_X2( &n3671, &n3670, &n3545, &n3813); int n1982; OAI21_X2( &n3509, &n3508, &n3817, &n1982); int n1985; AOI21_X2( &n1982, &n1987, &n3813, &n1985); int n3878; NAND2_X2( &n3959, &n3962, &n3878); int n1950; AOI21_X1( &n3547, &n3548, &n2116, &n1950); int n1971; XNOR2_X1( &n1754, &n1950, &n1971); int n3521; INV_X2( &n3530, &n3521); int n5069; NAND2_X2( &n3465, &n1897, &n5069); int n4092; XOR2_X1( &n4569, &n4058, &n4092); int n4317; INV_X1( &n4569, &n4317); int n4234; OAI21_X2( &n1859, &n3878, &n3877, &n4234); int n1839; XNOR2_X1( &n5359, &n5358, &n1839); int n1817; OAI21_X2( &n3440, &n2272, &n3439, &n1817); int n3504; AOI21_X4( &n1817, &n3437, &n1988, &n3504); int n1772; OR2_X1( &n1685, &n1760, &n1772); int n1768; AND2_X1( &n3463, &n3465, &n1768); int n1719; AND2_X1( &n3398, &n3397, &n1719); int n2318; INV_X1( &n3846, &n2318); int n1711; OR2_X1( &n1897, &n3465, &n1711); int n2294; OAI21_X1( &n3872, &n3877, &n3850, &n2294); int n3960; INV_X1( &n3877, &n3960); int n2296; INV_X1( &n3813, &n2296); int n3646; INV_X1( &n1891, &n3646); int n2259; OR2_X1( &n3849, &n2317, &n2259); int n2109; NOR2_X1( &n3532, &n3530, &n2109); int n4082; OAI21_X1( &n3647, &n1891, &n3648, &n4082); int n3518; NAND2_X1( &n3547, &n3517, &n3518); int n1841; INV_X1( &n4159, &n1841); int n4348; OAI21_X1( &n1841, &n2308, &n1686, &n4348); int n4507; AOI21_X1( &n4327, &n4328, &n4329, &n4507); int n3782; INV_X1( &n3437, &n3782); int n3798; INV_X1( &n3785, &n3798); int n3562; NAND2_X1( &n3548, &n3538, &n3562); int n3563; NAND2_X1( &n3550, &n3547, &n3563); int n1838; NAND2_X1( &n5358, &n5359, &n1838); int n1837; OR2_X1( &n5358, &n5359, &n1837); int n2258; NAND2_X1( &n3849, &n3845, &n2258); int n2257; NOR2_X1( &n2318, &n2317, &n2257); int n1983; OR2_X1( &n2257, &n3849, &n1983); int n4722; OAI21_X1( &n4589, &n4591, &n4590, &n4722); int n4596; OAI21_X1( &n4505, &n4507, &n4506, &n4596); int n3512; NAND2_X1( &n3517, &n2116, &n3512); int n2303; NOR2_X1( &n3522, &n3512, &n2303); int n1666; OR2_X1( &n3094, &n3093, &n1666); int n3527; INV_X1( &n3531, &n3527); int nullval27; DFFS_X1( &n1615, rst_n, clk, &nullval27, &a1_w[18]); int n1614; INV_X1( &a1_i[19], &n1614); int n5605; XNOR2_X1( &n5604, &n5603, &n5605); int n5599; NAND2_X1( &a1_w[18], &n5598, &n5599); int n5491; XNOR2_X1( &n5482, &n5481, &n5491); int n5652; NAND2_X1( &n5597, &a1_w[18], &n5652); int n5400; NAND2_X1( &a1_w[18], &b1_w[11], &n5400); int n5305, n4801; FA_X1( &n5166, &n5165, &n5164, &n5305, &n4801); int n5070; NAND2_X1( &n1711, &n5069, &n5070); int n4990; INV_X1( &n5069, &n4990); int n5361; NAND2_X1( &n2939, &a1_w[18], &n5361); int n4835; INV_X1( &n4834, &n4835); int n4802; INV_X1( &n4801, &n4802); int n4890; NAND2_X1( &a1_w[18], &n5707, &n4890); int n4737; NAND2_X1( &a1_w[18], &n1793, &n4737); int n4733; NAND2_X1( &n4670, &n4669, &n4733); int n4734; NOR2_X1( &n4670, &n4669, &n4734); int n4663; INV_X1( &n4700, &n4663); int n4657; INV_X1( &n4656, &n4657); int n4711; NAND2_X1( &n4572, &n2377, &n4711); int n4708; NOR2_X1( &n4572, &n2377, &n4708); int n4665; NAND2_X1( &n4529, &n4528, &n4665); int n4667; OR2_X1( &n4529, &n4528, &n4667); int n4521; NAND2_X1( &a1_w[18], &n5688, &n4521); int n4511; XNOR2_X1( &n4596, &n4510, &n4511); int n4504; NAND2_X1( &n4658, &n4656, &n4504); int n4400; NAND2_X1( &n4399, &n4398, &n4400); int n4525; NAND2_X1( &n4362, &n4361, &n4525); int n4526; NOR2_X1( &n4362, &n4361, &n4526); int n4407; NAND2_X1( &n4359, &n4358, &n4407); int n4408; OR2_X1( &n4359, &n4358, &n4408); int n4403; NAND2_X1( &n4357, &n4356, &n4403); int n4402; NOR2_X1( &n4357, &n4356, &n4402); int n4379; NAND2_X1( &n4353, &n4352, &n4379); int n4383; NAND2_X1( &n4351, &n4350, &n4383); int n4380; NOR2_X1( &n4353, &n4352, &n4380); int n4382; NOR2_X1( &n4351, &n4350, &n4382); int n4344; INV_X1( &n4500, &n4344); int n4339; INV_X1( &n4338, &n4339); int n4334; XOR2_X1( &n4507, &n4333, &n4334); int n4322; OAI21_X1( &n4567, &n4317, &n4564, &n4322); int n4288; NAND2_X1( &n4340, &n4338, &n4288); int n4281; INV_X1( &n4398, &n4281); int n4395; NAND2_X1( &n4278, &n4367, &n4395); int n4396; NOR2_X1( &n4277, &n4276, &n4396); int n4275; OAI21_X1( &n4325, &n4270, &n4324, &n4275); int n4194; NAND2_X1( &a1_w[18], &n5708, &n4194); int n4192; NAND2_X1( &a1_w[18], &n5709, &n4192); int n4190; NAND2_X1( &a1_w[18], &n5710, &n4190); int n4185; NAND2_X1( &a1_w[18], &n5680, &n4185); int n4347; NAND2_X1( &n4157, &n4156, &n4347); int n4349; NOR2_X1( &n4157, &n4156, &n4349); int n4121; XOR2_X1( &n4270, &n4120, &n4121); int n4256; OAI21_X1( &n4101, &n4317, &n4102, &n4256); int n4088; INV_X1( &n4276, &n4088); int n4085; INV_X1( &n4367, &n4085); int n4368; INV_X1( &n4277, &n4368); int n4080; NAND2_X1( &n4079, &n4078, &n4080); int n4081; NOR2_X1( &n4077, &n4076, &n4081); int n4075; AOI21_X1( &n4068, &n4070, &n4069, &n4075); int n4091; XNOR2_X1( &n4070, &n4067, &n4091); int n4010; OAI21_X1( &n4099, &n4317, &n4097, &n4010); int n3980; NAND2_X1( &n3979, &n3978, &n3980); int n3964; AOI21_X1( &n3958, &n3960, &n3959, &n3964); int n3951; INV_X1( &n4077, &n3951); int n3947; AOI21_X1( &n3940, &n3942, &n3941, &n3947); int n3939; XNOR2_X1( &n3942, &n3938, &n3939); int n3899; XNOR2_X1( &n3898, &n3897, &n3899); int n3840; NAND2_X1( &n3839, &n3871, &n3840); int n3818; INV_X1( &n3816, &n3818); int n3802; XOR2_X1( &n3798, &n3797, &n3802); int n3789; NAND2_X1( &n3788, &n3787, &n3789); int n4994; XOR2_X1( &n3782, &n3781, &n4994); int n3774; NAND2_X1( &n3773, &n3772, &n3774); int n3765; XNOR2_X1( &n3960, &n3764, &n3765); int n3673; NAND2_X1( &n3672, &n3671, &n3673); int n3651; INV_X1( &n4076, &n3651); int n3948; INV_X1( &n4082, &n3948); int n3645; NOR2_X1( &n2308, &n4159, &n3645); int n3632; INV_X1( &n3648, &n3632); int n3665; NAND2_X1( &n3620, &n3619, &n3665); int n3791; NAND2_X1( &n3617, &n3616, &n3791); int n3664; NOR2_X1( &n3620, &n3619, &n3664); int n3565; INV_X1( &n3563, &n3565); int n3546; NAND2_X1( &n3669, &n3545, &n3546); int n3566; XNOR2_X1( &n3627, &n3543, &n3566); int n3564; NOR2_X1( &n3541, &n3540, &n3564); int n3567; XOR2_X1( &n3535, &n1772, &n3567); int n3533; NAND2_X1( &n3547, &n3521, &n3533); int n3528; NAND2_X1( &n3527, &n3532, &n3528); int n3523; NAND2_X1( &n3521, &n2116, &n3523); int n3514; AOI21_X1( &n3524, &n3531, &n3526, &n3514); int n3505; INV_X1( &n3813, &n3505); int n3503; INV_X1( &n3814, &n3503); int n5059; INV_X1( &n3500, &n5059); int n5002; AND2_X1( &n3485, &n3484, &n5002); int n5003; OR2_X1( &n3484, &n3485, &n5003); int n3442; NAND2_X1( &n3441, &n3440, &n3442); int n4183; AND2_X1( &n5683, &a1_w[18], &n4183); int n3361; XOR2_X1( &n3360, &n3359, &n3361); int n4544; NAND2_X1( &n3340, &n3339, &n4544); int n3341; XOR2_X1( &n3335, &n3334, &n3341); int n4543; NOR2_X1( &n3340, &n3339, &n4543); int n3337; XOR2_X1( &n3289, &n3288, &n3337); int n3973; NOR2_X1( &n3846, &n3847, &n3973); int n3394; NAND2_X1( &n3094, &n3093, &n3394); int n3425; NAND2_X1( &n3092, &n3091, &n3425); int n3090; INV_X1( &n3978, &n3090); int n3426; OR2_X2( &n3092, &n3091, &n3426); int n5199; NOR2_X1( &n2932, &n2931, &n5199); int n4836; AND2_X1( &n2931, &n2932, &n4836); int n3377; NAND2_X1( &n2905, &n2904, &n3377); int n2679; NAND2_X1( &n2615, &a1_w[18], &n2679); int n3982; NAND2_X1( &n3900, &n3899, &n3982); int n2376; XOR2_X1( &n4592, &n4722, &n2376); int n2370; AND2_X1( &n3426, &n3425, &n2370); int n2343; XOR2_X1( &n4322, &n4321, &n2343); int n2331; OR2_X1( &n2349, &n3939, &n2331); int n2295; OAI21_X2( &n2296, &n3504, &n3503, &n2295); int n3770; OAI21_X1( &n2292, &n3782, &n3767, &n3770); int n2274; OAI21_X1( &n2272, &n3782, &n3438, &n2274); int n2125; OAI21_X1( &n3545, &n3504, &n3544, &n2125); int n3766; XNOR2_X1( &n3673, &n2125, &n3766); int n3815; INV_X2( &n3504, &n3815); int n2107; AOI22_X1( &n2109, &n3547, &n2108, &n3531, &n2107); int n2364; OR2_X1( &n3766, &n3765, &n2364); int n2015; NAND2_X1( &n3564, &n3562, &n2015); int n1986; NAND2_X2( &n3814, &n1987, &n1986); int n4023; INV_X2( &n4234, &n4023); int n2171; NAND2_X1( &n1897, &n1768, &n2171); int n3841; NAND2_X1( &n3765, &n3766, &n3841); int n2179; OAI21_X4( &n1985, &n3504, &n1986, &n2179); int n4976; AOI22_X2( &n4986, &n2171, &n4985, &n5069, &n4976); int n3561; XNOR2_X1( &n3546, &n3815, &n3561); int n1762; AND2_X1( &n3849, &n2318, &n1762); int n1751; NAND2_X1( &n2318, &n3845, &n1751); int n1746; OR2_X1( &n3900, &n3899, &n1746); int n1734; OR2_X1( &n2179, &n2259, &n1734); int n1733; OR2_X1( &n4836, &n5199, &n1733); int n1715; AND2_X1( &n3818, &n3817, &n1715); int n1710; XOR2_X1( &n4256, &n4105, &n1710); int n2112; INV_X1( &n3564, &n2112); int n1965; INV_X1( &n3567, &n1965); int n3443; XNOR2_X1( &n3442, &n2274, &n3443); int n3790; OAI21_X1( &n3795, &n3798, &n3794, &n3790); int n2080; NAND2_X1( &n3549, &n3563, &n2080); int n1952; NAND4_X1( &n3562, &n3549, &n3564, &n3563, &n1952); int n3842; XNOR2_X1( &n3840, &n2294, &n3842); int n4437; NAND2_X1( &n4091, &n4092, &n4437); int n3501; NAND2_X1( &n5059, &n3499, &n3501); int n4284; AOI21_X1( &n4080, &n4082, &n4081, &n4284); int n1998; INV_X1( &n3982, &n1998); int n1853; AOI21_X1( &n1735, &n4722, &n2350, &n1853); int n3427; NAND2_X1( &n3973, &n3979, &n3427); int n4705; AOI21_X1( &n4594, &n4595, &n4596, &n4705); int n2081; INV_X1( &n3562, &n2081); int n5184; OAI21_X1( &n1851, &n1853, &n1852, &n5184); int n2013; AOI21_X1( &n3566, &n3565, &n2112, &n2013); int n2014; NAND2_X1( &n2081, &n2112, &n2014); int n4184; INV_X1( &n2679, &n4184); int n3529; NOR2_X1( &n3523, &n3522, &n3529); int n2203; AOI22_X2( &n3501, &n3502, &n5061, &n3500, &n2203); int n5096; AND2_X1( &n3443, &n3444, &n5096); int n3428; AOI21_X1( &n3090, &n3974, &n3979, &n3428); int n2304; NAND2_X1( &n3514, &n3518, &n2304); int n1970; NAND2_X1( &n1971, &n3561, &n1970); int n1951; OAI21_X1( &n2112, &n2080, &n2081, &n1951); int n2256; AOI22_X1( &n1762, &n2179, &n1983, &n2258, &n2256); int n3843; XOR2_X1( &n2295, &n1715, &n3843); int n2111; NAND2_X1( &n1952, &n1951, &n2111); int n3977; INV_X1( &n2179, &n3977); int n3658; NOR2_X1( &n2111, &n3566, &n3658); int n5086; NOR2_X1( &n1971, &n3561, &n5086); int n2012; OAI211_X1( &n2014, &n2013, &n3565, &n2015, &n2012); int n5087; INV_X1( &n1970, &n5087); int n1677; DFFS_X1( &n1614, rst_n, clk, &n1677, &a1_w[19]); int n1613; INV_X1( &a1_i[20], &n1613); int n5600; NAND2_X1( &a1_w[19], &n5597, &n5600); int n5514; XNOR2_X1( &n5491, &n5490, &n5514); int n5653; NAND2_X1( &a1_w[19], &n4660, &n5653); int n5399; NAND2_X1( &n2939, &a1_w[19], &n5399); int n5458, n5167; FA_X1( &n5307, &n5306, &n5305, &n5458, &n5167); int n5185; AOI22_X1( &n2342, &n5184, &n5183, &n5182, &n5185); int n5168; INV_X1( &n5167, &n5168); int n5088; NOR2_X1( &n5087, &n5086, &n5088); int n5004; INV_X1( &n5002, &n5004); int n5080; XOR2_X1( &n4994, &n4993, &n5080); int n4978; INV_X1( &n4976, &n4978); int n5362; NAND2_X1( &a1_w[19], &n5707, &n5362); int n5194; INV_X1( &n4836, &n5194); int n5311; NAND2_X1( &n4803, &n4802, &n5311); int n5309; NOR2_X1( &n4803, &n4802, &n5309); int n4891; NAND2_X1( &a1_w[19], &n1793, &n4891); int n4713; OAI21_X1( &n4710, &n4712, &n4711, &n4713); int n4715; NOR2_X1( &n4712, &n4708, &n4715); int n4879; OAI21_X1( &n4703, &n4705, &n4704, &n4879); int n4738; NAND2_X1( &a1_w[19], &n5688, &n4738); int n4671; INV_X1( &n4734, &n4671); int n4666; INV_X1( &n4665, &n4666); int n4664; NAND2_X1( &n4663, &n4699, &n4664); int n4601; XOR2_X1( &n4705, &n4600, &n4601); int n4573; INV_X1( &n4708, &n4573); int n4545; INV_X1( &n4543, &n4545); int n4530; NAND2_X1( &n4667, &n4665, &n4530); int n4522; NAND2_X1( &a1_w[19], &n5708, &n4522); int n4409; NAND2_X1( &n4408, &n4407, &n4409); int n4404; INV_X1( &n4402, &n4404); int n4384; INV_X1( &n4382, &n4384); int n4371; INV_X1( &n4380, &n4371); int n4369; NAND2_X1( &n4368, &n4367, &n4369); int n4363; INV_X1( &n4526, &n4363); int n4360; INV_X1( &n4407, &n4360); int n4354; NAND2_X1( &n4383, &n4379, &n4354); int n4370; OAI21_X1( &n4347, &n4349, &n4348, &n4370); int n4355; NOR2_X1( &n4382, &n4380, &n4355); int n4345; NAND2_X1( &n4344, &n4499, &n4345); int n4496; NAND2_X1( &n2343, &n4334, &n4496); int n4498; NOR2_X1( &n2343, &n4334, &n4498); int n4282; AOI21_X1( &n4281, &n4395, &n4399, &n4282); int n4283; NAND2_X1( &n4396, &n4399, &n4283); int n4290; XNOR2_X1( &n4275, &n4274, &n4290); int n4261; AOI21_X1( &n4254, &n4256, &n4255, &n4261); int n4195; NAND2_X1( &a1_w[19], &n5709, &n4195); int n4193; NAND2_X1( &a1_w[19], &n5710, &n4193); int n4189; NAND2_X1( &a1_w[19], &n4188, &n4189); int n4186; NAND2_X1( &a1_w[19], &n5683, &n4186); int n4158; INV_X1( &n4349, &n4158); int n4266; NAND2_X1( &n1710, &n4121, &n4266); int n4268; NOR2_X1( &n1710, &n4121, &n4268); int n4096; INV_X1( &n4437, &n4096); int n4089; NAND2_X1( &n4088, &n4278, &n4089); int n4397; INV_X1( &n4284, &n4397); int n4094; XOR2_X1( &n4075, &n4074, &n4094); int n4424; NOR2_X1( &n4092, &n4091, &n4424); int n4011; XOR2_X1( &n4010, &n4009, &n4011); int n4236; NAND2_X1( &n1746, &n1676, &n4236); int n3976; INV_X1( &n3973, &n3976); int n3969; XOR2_X1( &n3964, &n3963, &n3969); int n3952; NAND2_X1( &n3951, &n4079, &n3952); int n3953; OAI21_X1( &n4078, &n3948, &n4076, &n3953); int n3955; XOR2_X1( &n3947, &n3946, &n3955); int n3965; NAND2_X1( &n2349, &n3939, &n3965); int n3920; NAND2_X1( &n1746, &n3982, &n3920); int n4972; NAND2_X1( &n3843, &n3842, &n4972); int n5104; NAND2_X1( &n3802, &n3801, &n5104); int n5103; NOR2_X1( &n3802, &n3801, &n5103); int n3793; NAND2_X1( &n2371, &n3791, &n3793); int n4984; AND2_X1( &n4993, &n4994, &n4984); int n3783; XOR2_X1( &n3775, &n3774, &n3783); int n3784; XNOR2_X1( &n3770, &n3769, &n3784); int n3804; NAND2_X1( &n2364, &n3841, &n3804); int n3666; INV_X1( &n3664, &n3666); int n3659; INV_X1( &n3658, &n3659); int n3652; NAND2_X1( &n3651, &n4078, &n3652); int n3653; XNOR2_X1( &n1686, &n3645, &n3653); int n3633; NAND2_X1( &n3632, &n3647, &n3633); int n3618; INV_X1( &n3791, &n3618); int n3534; NOR2_X1( &n3529, &n3528, &n3534); int n3506; OAI21_X1( &n3817, &n3505, &n3816, &n3506); int n3507; NOR2_X1( &n3503, &n3816, &n3507); int n5058; NAND2_X1( &n5060, &n5059, &n5058); int n4997; AOI21_X1( &n5002, &n5003, &n5006, &n4997); int n4162; NAND2_X1( &n3674, &a1_w[19], &n4162); int n3395; NAND2_X1( &n1666, &n3394, &n3395); int n3391; INV_X1( &n3428, &n3391); int n3389; INV_X1( &n3427, &n3389); int n3379; NAND2_X1( &n3378, &n3377, &n3379); int n4806; NAND2_X1( &n3362, &n3361, &n4806); int n4808; NOR2_X1( &n3362, &n3361, &n4808); int n4807; NAND2_X1( &n3342, &n3341, &n4807); int n4540; NAND2_X1( &n3338, &n3337, &n4540); int n4804; NOR2_X1( &n3342, &n3341, &n4804); int n4491; NOR2_X1( &n3338, &n3337, &n4491); int n3095; INV_X1( &n3394, &n3095); int n3390; INV_X1( &n3425, &n3390); int n3271; NAND2_X1( &n3426, &n1666, &n3271); int n3520; NOR2_X1( &n2680, &n2679, &n3520); int n2375; XOR2_X1( &n4878, &n5184, &n2375); int n2106; NAND2_X1( &n3529, &n2108, &n2106); int n2043; INV_X1( &n4984, &n2043); int n4970; INV_X1( &n3841, &n4970); int n2041; NOR2_X2( &n3843, &n3842, &n2041); int n4973; INV_X1( &n2041, &n4973); int n3657; AND2_X2( &n2111, &n3566, &n3657); int n1997; AOI21_X1( &n1998, &n4234, &n1746, &n1997); int n1976; NAND2_X2( &n2256, &n1734, &n1976); int n1968; AOI21_X2( &n3506, &n3507, &n3815, &n1968); int n1911; XNOR2_X2( &n2333, &n1968, &n1911); int n4141; XNOR2_X2( &n1751, &n2179, &n4141); int n5095; NOR2_X2( &n3444, &n3443, &n5095); int n2039; OAI21_X1( &n4972, &n3841, &n2041, &n2039); int n2269; AOI21_X2( &n3391, &n2179, &n3389, &n2269); int n3641; AOI21_X4( &n3657, &n5087, &n2012, &n3641); int n1961; NAND2_X1( &n2106, &n2107, &n1961); int n4241; AOI21_X2( &n3984, &n1676, &n1998, &n4241); int n3519; NOR2_X2( &n2678, &n4184, &n3519); int n2675; NOR2_X2( &n3519, &n3513, &n2675); int n2220; NOR2_X2( &n5095, &n5097, &n2220); int n1822; NAND2_X2( &n2220, &n4976, &n1822); int n2173; INV_X1( &n5095, &n2173); int n5062; NOR2_X2( &n4995, &n4997, &n5062); int n3637; NOR2_X2( &n3658, &n5086, &n3637); int n1728; AND2_X1( &n4545, &n4544, &n1728); int n1723; AND2_X1( &n4573, &n4711, &n1723); int n1714; XOR2_X1( &n1854, &n1853, &n1714); int n1708; OR2_X1( &n3519, &n3520, &n1708); int n1706; XOR2_X1( &n3919, &n1997, &n1706); int n1704; XOR2_X1( &n5185, &n1857, &n1704); int n1694; XNOR2_X1( &n3790, &n3789, &n1694); int n4980; NOR2_X1( &n3784, &n3783, &n4980); int n3667; AOI21_X1( &n3618, &n3792, &n2371, &n3667); int n1873; INV_X1( &n3637, &n1873); int n5469; OAI21_X1( &n1855, &n5185, &n1856, &n5469); int n2312; NOR2_X1( &n1760, &n1677, &n2312); int n4163; AOI21_X1( &n2312, &n5698, &a1_w[18], &n4163); int n1869; INV_X1( &n4266, &n1869); int n5312; NOR2_X1( &n5169, &n5168, &n5312); int n3981; OAI21_X1( &n3975, &n3977, &n3976, &n3981); int n4406; AOI21_X1( &n4354, &n4370, &n4355, &n4406); int n4692; NOR2_X1( &n2376, &n4601, &n4692); int n1974; NAND2_X1( &n4973, &n2364, &n1974); int n1964; NAND3_X1( &n3534, &n3533, &n1965, &n1964); int n1963; NAND2_X1( &n3533, &n3534, &n1963); int n1967; OAI21_X1( &n1708, &n2304, &n2303, &n1967); int n4410; OAI21_X1( &n4403, &n4406, &n4402, &n4410); int n4341; OAI21_X1( &n4282, &n4284, &n4283, &n4341); int n1966; INV_X1( &n1961, &n1966); int n4501; AOI21_X1( &n4339, &n4341, &n4340, &n4501); int n4659; OAI21_X1( &n4499, &n4501, &n4500, &n4659); int n1737; OR3_X1( &n2304, &n2303, &n1708, &n1737); int n1910; NAND2_X1( &n1967, &n1737, &n1910); int n1831; INV_X1( &n2220, &n1831); int nullval28; DFFS_X1( &n1613, rst_n, clk, &nullval28, &a1_w[20]); int n1612; INV_X1( &a1_i[21], &n1612); int intadd_20_B_0_; NAND2_X1( &a1_w[20], &n4188, &intadd_20_B_0_); int intadd_20_B_5_; NAND2_X1( &a1_w[20], &n1793, &intadd_20_B_5_); int n5608; NAND2_X1( &b1_w[11], &a1_w[20], &n5608); int n5606; XNOR2_X1( &n5600, &n5599, &n5606); int n5472, n5283; FA_X1( &n5471, &n5470, &n5469, &n5472, &n5283); int n5465, n5308; FA_X1( &n5460, &n5459, &n5458, &n5465, &n5308); int n5316; OR2_X1( &n5309, &n5312, &n5316); int n5568; INV_X1( &n5308, &n5568); int n5540; INV_X1( &n5283, &n5540); int n5245; NAND2_X1( &n5186, &n1704, &n5245); int n5246; NOR2_X1( &n5186, &n1704, &n5246); int n5310; NAND2_X1( &n5169, &n5168, &n5310); int n5170; INV_X1( &n5312, &n5170); int n5157; INV_X1( &n5311, &n5157); int n5105; INV_X1( &n5103, &n5105); int n5102; NOR2_X1( &n5096, &n5095, &n5102); int n5063; NOR2_X1( &n5062, &n5061, &n5063); int n5064; OAI21_X1( &n5058, &n5060, &n5059, &n5064); int n5005; NAND2_X1( &n5004, &n5003, &n5005); int n5056; XNOR2_X1( &n4997, &n4996, &n5056); int n4982; INV_X1( &n4980, &n4982); int n4974; NAND2_X1( &n4973, &n4972, &n4974); int n5268, n4706; FA_X1( &n4881, &n4880, &n4879, &n5268, &n4706); int n4809; OAI21_X1( &n4806, &n4808, &n4807, &n4809); int n4811; NOR2_X1( &n4808, &n4804, &n4811); int n5158; INV_X1( &n5309, &n5158); int n4773; NAND2_X1( &n4725, &n1714, &n4773); int n4672; NAND2_X1( &n4671, &n4733, &n4672); int n4691; NAND2_X1( &n2376, &n4601, &n4691); int n4602; INV_X1( &n4692, &n4602); int n4541; INV_X1( &n4540, &n4541); int n4676; NAND2_X1( &n4522, &n4521, &n4676); int n4677; NOR2_X1( &n4522, &n4521, &n4677); int n4512; XOR2_X1( &n4659, &n4504, &n4512); int n4542; INV_X1( &n4491, &n4542); int n4417; XNOR2_X1( &n4410, &n4409, &n4417); int n4405; NAND2_X1( &n4404, &n4403, &n4405); int n4401; AOI21_X1( &n4395, &n4397, &n4396, &n4401); int n4385; NAND2_X1( &n4384, &n4383, &n4385); int n4372; NAND2_X1( &n4371, &n4379, &n4372); int n4381; INV_X1( &n4370, &n4381); int n4378; XOR2_X1( &n4397, &n4369, &n4378); int n4364; NAND2_X1( &n4363, &n4525, &n4364); int n4335; INV_X1( &n4498, &n4335); int n4289; XOR2_X1( &n4341, &n4288, &n4289); int n4262; XNOR2_X1( &n4261, &n4260, &n4262); int n5704; NAND2_X1( &n5683, &a1_w[20], &n5704); int n4517; NAND2_X1( &n4195, &n4194, &n4517); int n4519; OR2_X1( &n4195, &n4194, &n4519); int n4412; NAND2_X1( &n4193, &n4192, &n4412); int n4411; NOR2_X1( &n4193, &n4192, &n4411); int n4199; NAND2_X1( &n4190, &n4189, &n4199); int n4200; OR2_X1( &n4190, &n4189, &n4200); int n4388; NAND2_X1( &n4186, &n4185, &n4388); int n4387; NOR2_X1( &n4186, &n4185, &n4387); int n4182; INV_X1( &n4162, &n4182); int n4161; NAND2_X1( &n4158, &n4347, &n4161); int n4122; INV_X1( &n4268, &n4122); int n4090; AOI21_X1( &n4085, &n4397, &n4368, &n4090); int n4438; INV_X1( &n4424, &n4438); int n4020; INV_X1( &n4241, &n4020); int n4018; INV_X1( &n4236, &n4018); int n4019; NAND2_X1( &n4012, &n4011, &n4019); int n4235; OR2_X1( &n4012, &n4011, &n4235); int n4014; OAI21_X1( &n4241, &n4023, &n4236, &n4014); int n4016; XNOR2_X1( &n3981, &n3980, &n4016); int n3966; NAND2_X1( &n2331, &n3965, &n3966); int n3954; XOR2_X1( &n3953, &n3952, &n3954); int n4053; INV_X1( &n3965, &n4053); int n3971; XOR2_X2( &n4023, &n3920, &n3971); int n3803; XNOR2_X1( &n3793, &n3792, &n3803); int n4981; NAND2_X1( &n3784, &n3783, &n4981); int n3668; NAND2_X1( &n3666, &n3665, &n3668); int n3660; INV_X1( &n3657, &n3660); int n3654; XOR2_X1( &n3948, &n3652, &n3654); int n4139; INV_X1( &n3637, &n4139); int n3634; XOR2_X1( &n3646, &n3633, &n3634); int n3924; OAI21_X1( &n3665, &n3664, &n3667, &n3924); int n3414; NAND2_X1( &n5698, &a1_w[20], &n3414); int n3407; NOR2_X1( &n4184, &n4162, &n3407); int n3392; AOI21_X1( &n3390, &n3391, &n3426, &n3392); int n3393; NAND2_X1( &n3389, &n3426, &n3393); int n3373; INV_X1( &n4804, &n3373); int n3363; INV_X1( &n4808, &n3363); int n4810; OAI21_X1( &n4544, &n4540, &n4543, &n4810); int n4805; NOR2_X1( &n4491, &n4543, &n4805); int n3272; NOR2_X1( &n3271, &n3427, &n3272); int n3096; AOI21_X1( &n3095, &n3390, &n1666, &n3096); int n5705; NAND2_X1( &n2615, &a1_w[20], &n5705); int n2681; INV_X1( &n3519, &n2681); int n2683; INV_X1( &n2675, &n2683); int n2387; OR2_X1( &n5056, &n5055, &n2387); int n2380; OR2_X1( &n4725, &n1714, &n2380); int n2325; XNOR2_X1( &n4401, &n4400, &n2325); int n2202; NAND2_X2( &n5062, &n5058, &n2202); int n4989; NAND2_X2( &n2203, &n2202, &n4989); int n2161; XNOR2_X2( &n2370, &n2269, &n2161); int n4149; NOR2_X2( &n1706, &n1976, &n4149); int n1973; INV_X1( &n2039, &n1973); int n4150; NAND2_X1( &n1706, &n1976, &n4150); int n3640; OAI21_X2( &n1964, &n1966, &n3567, &n3640); int n3642; AND2_X2( &n1910, &n1911, &n3642); int n2052; NAND3_X1( &n1899, &n3521, &n2675, &n2052); int n4165; XOR2_X1( &n4348, &n4161, &n4165); int n4977; NAND3_X4( &n1830, &n4989, &n1711, &n4977); int n2218; NOR2_X4( &n1831, &n4977, &n2218); int n3643; NOR2_X2( &n1911, &n1910, &n3643); int n2064; NOR2_X2( &n3643, &n3640, &n2064); int n1797; AOI21_X2( &n5096, &n2173, &n5098, &n1797); int n2219; NAND2_X2( &n1797, &n1822, &n2219); int n4882; XNOR2_X1( &n1788, &n5268, &n4882); int n4242; NAND2_X2( &n4235, &n1692, &n4242); int n1776; NAND2_X1( &n3363, &n4806, &n1776); int n1753; AND2_X1( &n4542, &n4540, &n1753); int n1745; OR2_X1( &n4810, &n4805, &n1745); int n1726; AND2_X1( &n3373, &n4807, &n1726); int n1718; OR2_X1( &n4541, &n4542, &n1718); int n1712; XNOR2_X1( &n4501, &n4345, &n1712); int n1696; OR2_X1( &n3955, &n3954, &n1696); int n5071; CLKBUF_X1( &n4989, &n5071); int n5090; NOR2_X1( &n1694, &n3803, &n5090); int n2042; NOR2_X1( &n5090, &n5103, &n2042); int n3644; CLKBUF_X1( &n3643, &n3644); int n1909; INV_X1( &n3643, &n1909); int n1785; NAND2_X1( &n5268, &n1786, &n1785); int n5273; NOR2_X1( &n2375, &n4882, &n5273); int n4701; AOI21_X1( &n4657, &n4659, &n4658, &n4701); int n4527; AOI21_X1( &n4360, &n4410, &n4408, &n4527); int n1962; NAND2_X1( &n1963, &n1966, &n1962); int n3638; NOR2_X1( &n1962, &n1965, &n3638); int n5284; NAND2_X1( &n1787, &n1785, &n5284); int n4668; OAI21_X1( &n4525, &n4527, &n4526, &n4668); int n2249; NAND2_X1( &n3272, &n2179, &n2249); int n2682; AOI21_X1( &n3520, &n2681, &n3524, &n2682); int n5089; OAI21_X1( &n4981, &n2043, &n4980, &n5089); int n2128; NOR2_X1( &n4139, &n3640, &n2128); int n1682; DFFS_X1( &n1612, rst_n, clk, &n1682, &a1_w[21]); int n1611; INV_X1( &a1_i[22], &n1611); int intadd_20_B_1_; NAND2_X1( &a1_w[21], &n5680, &intadd_20_B_1_); int intadd_20_CI; NAND2_X1( &a1_w[21], &n5683, &intadd_20_CI); int intadd_20_A_6_; NAND2_X1( &a1_w[21], &n1793, &intadd_20_A_6_); int n5632; NAND2_X1( &a1_w[21], &n2939, &n5632); int n5610; XNOR2_X1( &n5606, &n5605, &n5610); int n5536; XNOR2_X1( &n5465, &n5464, &n5536); int n5313; OAI21_X1( &n5310, &n5312, &n5311, &n5313); int n5474, n5367; FA_X1( &n5286, &n5285, &n5284, &n5474, &n5367); int n5187; INV_X1( &n5246, &n5187); int n5244; NAND2_X1( &n2380, &n5176, &n5244); int n5171; NAND2_X1( &n5170, &n5310, &n5171); int n5106; NAND2_X1( &n5105, &n5104, &n5106); int n5092; INV_X1( &n5090, &n5092); int n5107; INV_X1( &n5089, &n5107); int n5078; XNOR2_X1( &n5071, &n5070, &n5078); int n5068; XOR2_X1( &n5064, &n5063, &n5068); int n5743; NAND2_X1( &n5056, &n5055, &n5743); int n5740; XNOR2_X1( &n5006, &n5005, &n5740); int n4991; AOI21_X1( &n4990, &n1711, &n5071, &n4991); int n4983; NAND2_X1( &n4982, &n4981, &n4983); int n5099; NAND2_X1( &n4978, &n4977, &n5099); int n5272; NAND2_X1( &n2375, &n4882, &n5272); int n4883; INV_X1( &n5273, &n4883); int n4812; AOI21_X1( &n4809, &n4811, &n4810, &n4812); int n4813; NAND2_X1( &n4811, &n4805, &n4813); int n4814; NAND2_X1( &n5158, &n5311, &n4814); int n5175; INV_X1( &n4773, &n5175); int n4726; NAND2_X1( &n2380, &n4773, &n4726); int n4864; OAI21_X1( &n4699, &n4701, &n4700, &n4864); int n4735; AOI21_X1( &n4666, &n4668, &n4667, &n4735); int n4603; NAND2_X1( &n4602, &n4691, &n4603); int n4531; XNOR2_X1( &n4668, &n4530, &n4531); int n4523; INV_X1( &n4677, &n4523); int n4518; INV_X1( &n4517, &n4518); int n4693; NAND2_X1( &n4512, &n4511, &n4693); int n4689; NOR2_X1( &n4512, &n4511, &n4689); int n4439; NAND2_X1( &n4438, &n4437, &n4439); int n4413; INV_X1( &n4411, &n4413); int n4416; XOR2_X1( &n4406, &n4405, &n4416); int n4389; INV_X1( &n4387, &n4389); int n4386; OAI21_X1( &n4379, &n4381, &n4380, &n4386); int n4377; XOR2_X1( &n4381, &n4372, &n4377); int n4365; XOR2_X1( &n4527, &n4364, &n4365); int n4336; NAND2_X1( &n4335, &n4496, &n4336); int n4497; NAND2_X1( &n4290, &n4289, &n4497); int n4495; NOR2_X1( &n4290, &n4289, &n4495); int n4548; NAND2_X1( &n4263, &n4262, &n4548); int n4546; NOR2_X1( &n4263, &n4262, &n4546); int n4244; NOR2_X1( &n4236, &n4242, &n4244); int n4201; NAND2_X1( &n4200, &n4199, &n4201); int n5703; NAND2_X1( &n5698, &a1_w[21], &n5703); int n4197; INV_X1( &n5705, &n4197); int n4196; NAND2_X1( &n4519, &n4517, &n4196); int n4191; INV_X1( &n4199, &n4191); int n4390; OAI21_X1( &n4182, &n4184, &n4183, &n4390); int n4164; AOI21_X1( &n4163, &n4182, &n4184, &n4164); int n4151; INV_X1( &n4149, &n4151); int n4123; NAND2_X1( &n4122, &n4266, &n4123); int n4093; XNOR2_X1( &n4090, &n4089, &n4093); int n4056; NAND2_X1( &n2331, &n1696, &n4056); int n4239; INV_X1( &n4019, &n4239); int n4022; NAND2_X1( &n4018, &n4235, &n4022); int n4013; NAND2_X1( &n4235, &n4019, &n4013); int n4051; NAND2_X1( &n3955, &n3954, &n4051); int n5091; NAND2_X1( &n1694, &n3803, &n5091); int n3805; XOR2_X1( &n3668, &n3667, &n3805); int n3663; NAND2_X1( &n3660, &n3659, &n3663); int n4376; NOR2_X1( &n3654, &n3653, &n4376); int n3656; NAND2_X1( &n3653, &n3654, &n3656); int n3639; INV_X1( &n3638, &n3639); int n3921; NAND2_X1( &n3635, &n3634, &n3921); int n3923; OR2_X1( &n3635, &n3634, &n3923); int n3554; XNOR2_X1( &n4183, &n3407, &n3554); int n3396; OAI21_X1( &n3392, &n3977, &n3393, &n3396); int n3343; INV_X1( &n4810, &n3343); int n3336; INV_X1( &n4805, &n3336); int n3097; OAI21_X1( &n3096, &n3271, &n3428, &n3097); int n3403; NOR2_X1( &n2873, &n5705, &n3403); int n2823; OAI21_X1( &n5705, &n2824, &n2843, &n2823); int n2365; OR2_X1( &n5078, &n5077, &n2365); int n2347; OR2_X1( &n2325, &n4416, &n2347); int n2334; AND2_X1( &n4151, &n4150, &n2334); int n2236; INV_X1( &n2249, &n2236); int n3811; NAND2_X2( &n2064, &n3637, &n3811); int n2685; AOI21_X2( &n2052, &n2053, &n1750, &n2685); int n2040; OAI21_X1( &n5091, &n5104, &n5090, &n2040); int n2127; OAI21_X2( &n3639, &n3641, &n3640, &n2127); int n3844; AOI21_X2( &n2040, &n2042, &n5089, &n3844); int n2051; AOI21_X2( &n3642, &n1909, &n3638, &n2051); int n4146; OAI21_X2( &n1973, &n3844, &n1974, &n4146); int n4140; INV_X2( &n2064, &n4140); int n4155; OAI21_X4( &n2051, &n4140, &n3641, &n4155); int n3661; NOR2_X4( &n2219, &n2218, &n3661); int n2684; OAI21_X2( &n2682, &n3527, &n2683, &n2684); int n1771; OR2_X1( &n1682, &n1760, &n1771); int n1749; OR2_X1( &n3640, &n3638, &n1749); int n1713; XNOR2_X1( &n4701, &n4664, &n1713); int n1691; OR2_X1( &n4094, &n4093, &n1691); int n1680; OR2_X1( &n3642, &n3644, &n1680); int n1959; NOR2_X1( &n4139, &n4140, &n1959); int n1912; INV_X1( &n3661, &n1912); int n4265; NAND2_X1( &n1691, &n4438, &n4265); int n3273; INV_X1( &n3097, &n3273); int n5134; INV_X1( &n4146, &n5134); int n5838; DFFS_X1( &n1611, rst_n, clk, &n5838, &a1_w[22]); int n1609; INV_X1( &a1_i[24], &n1609); int intadd_22_CI; NAND2_X1( &a1_w[22], &n4188, &intadd_22_CI); int intadd_22_A_5_; NAND2_X1( &a1_w[22], &n1793, &intadd_22_A_5_); int n5612; NAND2_X1( &n5707, &a1_w[22], &n5612); int n5532, n5541; FA_X1( &n5476, &n5475, &n5474, &n5532, &n5541); int n5314; INV_X1( &n5313, &n5314); int n5287; XNOR2_X1( &n5540, &n5541, &n5287); int n5249; NOR2_X1( &n5244, &n5246, &n5249); int n5188; NAND2_X1( &n5187, &n5245, &n5188); int n5247; AOI21_X1( &n5174, &n5176, &n5175, &n5247); int n5178; INV_X1( &n5244, &n5178); int n5108; XOR2_X1( &n5107, &n5106, &n5108); int n5101; AOI21_X1( &n5098, &n5100, &n5099, &n5101); int n5093; NAND2_X1( &n5092, &n5091, &n5093); int n5094; OAI21_X1( &n5104, &n5107, &n5103, &n5094); int n5751; NAND2_X1( &n5078, &n5077, &n5751); int n5747; NAND2_X1( &n5068, &n5067, &n5747); int n5746; NOR2_X1( &n5068, &n5067, &n5746); int n5057; INV_X1( &n5743, &n5057); int n5744; AND2_X1( &n5740, &n5741, &n5744); int n5081; XNOR2_X1( &n4992, &n4991, &n5081); int n5082; XNOR2_X1( &n4984, &n4983, &n5082); int n5083; XOR2_X1( &n5099, &n4979, &n5083); int n4884; NAND2_X1( &n4883, &n5272, &n4884); int n5264, n4702; FA_X1( &n4866, &n4865, &n4864, &n5264, &n4702); int n4868; OAI21_X1( &n4733, &n4735, &n4734, &n4868); int n4707; INV_X1( &n4702, &n4707); int n4694; OAI21_X1( &n4691, &n4693, &n4692, &n4694); int n4696; NOR2_X1( &n4689, &n4692, &n4696); int n4673; XOR2_X1( &n4735, &n4672, &n4673); int n4714; OAI21_X1( &n4547, &n4549, &n4548, &n4714); int n4709; NOR2_X1( &n4549, &n4546, &n4709); int n4524; NAND2_X1( &n4523, &n4676, &n4524); int n4513; INV_X1( &n4689, &n4513); int n4695; OAI21_X1( &n4496, &n4498, &n4497, &n4695); int n4690; NOR2_X1( &n4498, &n4495, &n4690); int n4470; INV_X1( &n4548, &n4470); int n4454; NAND2_X1( &n2325, &n4416, &n4454); int n4414; NAND2_X1( &n4413, &n4412, &n4414); int n4391; NAND2_X1( &n4389, &n4388, &n4391); int n4393; XNOR2_X1( &n4386, &n4385, &n4393); int n4433; NAND2_X1( &n4378, &n4377, &n4433); int n4432; NOR2_X1( &n4378, &n4377, &n4432); int n4652; NAND2_X1( &n1712, &n4365, &n4652); int n4649; NOR2_X1( &n1712, &n4365, &n4649); int n4307; INV_X1( &n4497, &n4307); int n4308; INV_X1( &n4495, &n4308); int n4471; INV_X1( &n4546, &n4471); int n4240; AOI21_X1( &n4238, &n1692, &n4239, &n4240); int n4198; NOR2_X1( &n4197, &n5703, &n4198); int n4187; INV_X1( &n4390, &n4187); int n4373; NAND2_X1( &n4165, &n4164, &n4373); int n4375; OR2_X1( &n4165, &n4164, &n4375); int n4425; NAND2_X1( &n4094, &n4093, &n4425); int n4052; INV_X1( &n4051, &n4052); int n4021; AOI21_X1( &n4239, &n4020, &n4235, &n4021); int n4015; XNOR2_X1( &n4014, &n4013, &n4015); int n3956; NAND2_X1( &n1696, &n4051, &n3956); int n3922; INV_X1( &n3921, &n3922); int n4971; INV_X1( &n3844, &n4971); int n3655; INV_X1( &n4376, &n3655); int n3636; NAND2_X1( &n3923, &n3921, &n3636); int n3559; INV_X1( &n3554, &n3559); int n3560; XOR2_X1( &n3414, &n1771, &n3560); int n3575; XNOR2_X1( &n3396, &n3395, &n3575); int n5691; AND2_X1( &n5683, &a1_w[22], &n5691); int n3344; OAI21_X1( &n4807, &n3343, &n4804, &n3344); int n3345; NOR2_X1( &n3336, &n4804, &n3345); int n4207; NAND2_X1( &n2615, &a1_w[22], &n4207); int n2825; AOI21_X1( &n2823, &n2824, &n2846, &n2825); int n2205; BUF_X2( &n3661, &n2205); int n2238; NAND2_X1( &n3273, &n2249, &n2238); int n4492; XOR2_X1( &n2238, &n1753, &n4492); int n1937; AOI21_X1( &n3344, &n2238, &n3345, &n1937); int n4144; INV_X2( &n4155, &n4144); int n3557; NOR2_X4( &n2685, &n2684, &n3557); int n1881; NOR2_X2( &n3661, &n3811, &n1881); int n1915; INV_X2( &n1881, &n1915); int n1872; OAI21_X1( &n3641, &n3661, &n1873, &n1872); int n1930; NOR2_X2( &n1881, &n4155, &n1930); int n1818; INV_X1( &n1930, &n1818); int n3405; INV_X2( &n3557, &n3405); int n1835; XNOR2_X1( &n1776, &n1937, &n1835); int n4142; XNOR2_X2( &n1755, &n3557, &n4142); int n2126; AOI21_X2( &n2127, &n1912, &n2128, &n2126); int n4243; OAI21_X2( &n4240, &n4242, &n4241, &n4243); int n1796; OAI21_X2( &n3555, &n3557, &n3556, &n1796); int n4202; OAI21_X1( &n4388, &n4187, &n4387, &n4202); int n2235; NAND2_X1( &n3273, &n4540, &n2235); int n2074; INV_X1( &n2238, &n2074); int n5159; OAI21_X1( &n4812, &n2074, &n4813, &n5159); int n2237; NAND2_X1( &n3273, &n3343, &n2237); int n1870; NOR2_X1( &n4268, &n4265, &n1870); int n2196; AOI21_X1( &n4694, &n4696, &n4695, &n2196); int n2195; INV_X1( &n2196, &n2195); int n2142; OAI21_X2( &n1745, &n2237, &n2236, &n2142); int n3662; OAI21_X1( &n1970, &n2205, &n5086, &n3662); int n1936; XNOR2_X1( &n1726, &n2142, &n1936); int n5271; NOR2_X1( &n4707, &n4706, &n5271); int n1801; NAND2_X1( &n4142, &n4141, &n1801); int n3423; NAND2_X1( &n4207, &n2890, &n3423); int n4153; OR2_X2( &n4141, &n4142, &n4153); int nullval29; DFFS_X1( &n1609, rst_n, clk, &nullval29, &a1_w[24]); int n5847; AND2_X1( &n5681, &a1_w[24], &n5847); int n5843; AND2_X1( &n5680, &a1_w[24], &n5843); int n5842; AND2_X1( &n5710, &a1_w[24], &n5842); int n5840; AND2_X1( &n5708, &a1_w[24], &n5840); int n5614; NAND2_X1( &n5688, &a1_w[24], &n5614); int n5543; NAND2_X1( &n5540, &n5541, &n5543); int n5276; NOR2_X1( &n5271, &n5273, &n5276); int n5389, n4867; FA_X1( &n5266, &n5265, &n5264, &n5389, &n4867); int n5248; OAI21_X1( &n5245, &n5247, &n5246, &n5248); int n5177; INV_X1( &n5247, &n5177); int n5172; AOI21_X1( &n5157, &n5159, &n5158, &n5172); int n5109; XNOR2_X1( &n5102, &n5101, &n5109); int n5110; XNOR2_X1( &n5094, &n5093, &n5110); int n5761; NAND2_X1( &n5083, &n5082, &n5761); int n5757; NAND2_X1( &n5081, &n5080, &n5757); int n5079; INV_X1( &n5751, &n5079); int n5749; AOI21_X1( &n5057, &n2387, &n5744, &n5749); int n5758; NOR2_X1( &n5081, &n5080, &n5758); int n5760; NOR2_X1( &n5083, &n5082, &n5760); int n4975; AOI21_X1( &n4970, &n4971, &n2364, &n4975); int n5357, n4741; FA_X1( &n4870, &n4869, &n4868, &n5357, &n4741); int n4872; INV_X1( &n4867, &n4872); int n5315; INV_X1( &n5159, &n5315); int n4716; AOI21_X1( &n4713, &n4715, &n4714, &n4716); int n4718; NAND2_X1( &n4715, &n4709, &n4718); int n5274; NAND2_X1( &n4707, &n4706, &n5274); int n4698; NAND2_X1( &n4696, &n4690, &n4698); int n4730; NAND2_X1( &n1713, &n4673, &n4730); int n4731; NOR2_X1( &n1713, &n4673, &n4731); int n4606; INV_X1( &n4714, &n4606); int n4605; INV_X1( &n4709, &n4605); int n4583; INV_X1( &n4695, &n4583); int n4582; INV_X1( &n4690, &n4582); int n4514; NAND2_X1( &n4513, &n4693, &n4514); int n4455; NAND2_X1( &n2347, &n4454, &n4455); int n4434; INV_X1( &n4432, &n4434); int n4426; NAND2_X1( &n1691, &n4425, &n4426); int n4445; INV_X1( &n4454, &n4445); int n4392; XOR2_X1( &n4391, &n4390, &n4392); int n4374; INV_X1( &n4373, &n4374); int n4366; INV_X1( &n4649, &n4366); int n4291; NAND2_X1( &n4308, &n4497, &n4291); int n4264; NAND2_X1( &n4471, &n4548, &n4264); int n4717; AOI21_X2( &n4243, &n4234, &n4244, &n4717); int n4457; XNOR2_X1( &n4202, &n4201, &n4457); int n4458; XNOR2_X1( &n5704, &n4198, &n4458); int n4166; NAND2_X1( &n4375, &n4373, &n4166); int n4154; NAND2_X1( &n4142, &n4141, &n4154); int n4095; INV_X1( &n4425, &n4095); int n4054; AOI21_X1( &n4052, &n4053, &n1696, &n4054); int n4050; OAI21_X1( &n4021, &n4023, &n4022, &n4050); int n4232; NAND2_X1( &n4016, &n4015, &n4232); int n4229; NOR2_X1( &n4016, &n4015, &n4229); int n4055; AOI21_X1( &n3922, &n3924, &n3923, &n4055); int n3806; XNOR2_X1( &n3804, &n4971, &n3806); int n3809; NAND2_X1( &n3656, &n3655, &n3809); int n3808; XOR2_X1( &n3924, &n3636, &n3808); int n3380; NAND2_X1( &n5698, &a1_w[24], &n3380); int n5692; INV_X1( &n4207, &n5692); int n2892; INV_X1( &n3423, &n2892); int n2830; OAI21_X1( &n2825, &n2827, &n2826, &n2830); int n5687; NAND2_X1( &n2615, &a1_w[24], &n5687); int n5686; NAND2_X1( &n5683, &a1_w[24], &n5686); int n4415; AOI21_X1( &n4191, &n4202, &n4200, &n4415); int n5390; AOI22_X1( &n2324, &n5389, &n5388, &n5387, &n5390); int n2373; XNOR2_X1( &n4415, &n4414, &n2373); int n2361; OR2_X1( &n5109, &n5108, &n2361); int n2326; XOR2_X1( &n5267, &n5389, &n2326); int n5111; XNOR2_X1( &n5088, &n2205, &n5111); int n2028; OAI21_X2( &n1718, &n2236, &n2235, &n2028); int n3412; INV_X1( &n3405, &n3412); int n3807; XOR2_X1( &n1872, &n1749, &n3807); int n5125; NOR2_X1( &n3807, &n3808, &n5125); int n4871; XNOR2_X1( &n1839, &n5357, &n4871); int n5119; XNOR2_X2( &n3663, &n3662, &n5119); int n5250; OAI21_X2( &n4716, &n4718, &n4717, &n5250); int n2221; XNOR2_X2( &n1680, &n2126, &n2221); int n5122; NOR2_X2( &n2221, &n3809, &n5122); int n1885; NOR2_X1( &n5122, &n5125, &n1885); int n4269; OAI21_X2( &n4054, &n4056, &n4055, &n4269); int n1777; NAND2_X1( &n4154, &n4153, &n1777); int n2240; INV_X1( &n4153, &n2240); int n1957; NAND2_X1( &n4153, &n4155, &n1957); int n1960; NOR2_X1( &n3661, &n2240, &n1960); int n2194; INV_X1( &n5274, &n2194); int n2193; NOR2_X1( &n2194, &n5271, &n2193); int n1836; NAND2_X1( &n1837, &n5357, &n1836); int n4267; AOI21_X1( &n4095, &n4096, &n1691, &n4267); int n3383; AND2_X1( &n2900, &n5687, &n3383); int n4727; XNOR2_X1( &n5250, &n4726, &n4727); int n2869; NAND2_X1( &n3423, &n3420, &n2869); int n1868; AOI21_X1( &n1869, &n1870, &n4269, &n1868); int n2027; XNOR2_X1( &n1728, &n2028, &n2027); int n5116; OR2_X1( &n3806, &n3805, &n5116); int intadd_22_A_4_; NAND2_X1( &a1_w[22], &n5688, &intadd_22_A_4_); int n5369; XNOR2_X1( &n5367, &n2326, &n5369); int n5567; OAI21_X1( &n5314, &n5316, &n5315, &n5567); int n5278; NAND2_X1( &n5367, &n2326, &n5278); int n5275; OAI21_X1( &n5272, &n5274, &n5273, &n5275); int n5279; NOR2_X1( &n2326, &n5367, &n5279); int n5457; AOI21_X1( &n5248, &n5250, &n5249, &n5457); int n5189; AOI21_X1( &n5177, &n5250, &n5178, &n5189); int n5191; XOR2_X1( &n5172, &n5171, &n5191); int n5128; INV_X1( &n5125, &n5128); int n5124; INV_X1( &n5122, &n5124); int n5770; NAND2_X1( &n5111, &n5110, &n5770); int n5766; NAND2_X1( &n5109, &n5108, &n5766); int n5084; OAI21_X1( &n5761, &n5760, &n5757, &n5084); int n5752; OAI21_X1( &n5747, &n5749, &n5746, &n5752); int n5085; NOR2_X1( &n5760, &n5758, &n5085); int n5120; XOR2_X1( &n4975, &n4974, &n5120); int n5364; NAND2_X1( &n4872, &n4871, &n5364); int n5365; NOR2_X1( &n4872, &n4871, &n5365); int n4815; XOR2_X1( &n4814, &n5315, &n4815); int n4784; AOI21_X1( &n5175, &n5250, &n2380, &n4784); int n4674; INV_X1( &n4731, &n4674); int n4607; OAI21_X1( &n4711, &n4606, &n4708, &n4607); int n4608; NOR2_X1( &n4605, &n4708, &n4608); int n4584; OAI21_X1( &n4693, &n4689, &n4583, &n4584); int n4586; NOR2_X1( &n4689, &n4582, &n4586); int n4459; XNOR2_X1( &n4458, &n4457, &n4459); int n4436; NAND2_X1( &n4434, &n4433, &n4436); int n4446; NAND2_X1( &n4417, &n2373, &n4446); int n4447; OR2_X1( &n4417, &n2373, &n4447); int n4428; NAND2_X1( &n4393, &n4392, &n4428); int n4429; OR2_X1( &n4393, &n4392, &n4429); int n4435; AOI21_X1( &n4374, &n4376, &n4375, &n4435); int n4421; NAND2_X1( &n4366, &n4652, &n4421); int n4609; INV_X2( &n4717, &n4609); int n4203; INV_X1( &n4457, &n4203); int n4520; OAI21_X1( &n4412, &n4415, &n4411, &n4520); int n4167; XOR2_X1( &n4376, &n4166, &n4167); int n4143; INV_X1( &n4154, &n4143); int n4128; INV_X1( &n4232, &n4128); int n4440; INV_X1( &n4269, &n4440); int n4126; XNOR2_X1( &n4050, &n4049, &n4126); int n4129; INV_X1( &n4229, &n4129); int n3967; INV_X1( &n4055, &n3967); int n5115; AND2_X1( &n3805, &n3806, &n5115); int n3382; NOR2_X1( &n2900, &n5687, &n3382); int n3424; NAND2_X1( &n5692, &n2891, &n3424); int n3402; NOR2_X1( &n2830, &n2829, &n3402); int n2395; INV_X1( &n5687, &n2395); int n2397; INV_X1( &n5686, &n2397); int n5468; INV_X1( &n5390, &n5468); int n2362; OR2_X1( &n5111, &n5110, &n2362); int n2348; XOR2_X1( &n5391, &n5468, &n2348); int n4968; NAND2_X1( &n3808, &n3807, &n4968); int n5123; NAND2_X1( &n3809, &n2221, &n5123); int n1989; INV_X1( &n4128, &n1989); int n1948; XNOR2_X1( &n1930, &n1777, &n1948); int n4957; NAND2_X2( &n4167, &n1948, &n4957); int n1812; OAI21_X2( &n5123, &n4968, &n5122, &n1812); int n4293; XNOR2_X2( &n4609, &n4264, &n4293); int n5127; OAI21_X4( &n5116, &n5119, &n5115, &n5127); int n1748; NAND2_X1( &n3423, &n3424, &n1748); int n5392; NAND2_X1( &n1838, &n1836, &n5392); int n1958; AOI21_X1( &n4143, &n1960, &n1959, &n1958); int n1871; OR2_X1( &n4267, &n4268, &n1871); int n2085; INV_X1( &n3383, &n2085); int n2024; AOI21_X1( &n4470, &n4609, &n4471, &n2024); int n4493; XNOR2_X1( &n1727, &n2024, &n4493); int n1842; INV_X1( &n2869, &n1842); int n2026; AOI21_X2( &n4714, &n4609, &n4709, &n2026); int n3376; NAND2_X1( &n2085, &n3398, &n3376); int n2025; XNOR2_X1( &n1723, &n2026, &n2025); int n5570, n5349; FA_X1( &n5569, &n5568, &n5567, &n5570, &n5349); int n5538; OAI21_X1( &n5455, &n5457, &n5456, &n5538); int n5594, n5397; FA_X1( &n5394, &n5393, &n5392, &n5594, &n5397); int n5350; INV_X1( &n5349, &n5350); int n5454; XOR2_X1( &n5457, &n5263, &n5454); int n5190; XOR2_X1( &n5189, &n5188, &n5190); int n5130; NAND2_X1( &n5124, &n5123, &n5130); int n5117; INV_X1( &n5115, &n5117); int n5112; INV_X1( &n5770, &n5112); int n5768; INV_X1( &n5766, &n5768); int n5114; NAND2_X1( &n2362, &n2361, &n5114); int n5759; AOI21_X1( &n5079, &n5752, &n2365, &n5759); int n5126; INV_X1( &n4968, &n5126); int n4949; INV_X1( &n4957, &n4949); int n4873; INV_X1( &n5365, &n4873); int n4816; XOR2_X1( &n4784, &n4783, &n4816); int n4675; NAND2_X1( &n4674, &n4730, &n4675); int n4640; AOI21_X1( &n4607, &n4609, &n4608, &n4640); int n4678; AOI21_X1( &n4518, &n4520, &n4519, &n4678); int n4539; NOR2_X1( &n4493, &n4492, &n4539); int n4448; NAND2_X1( &n4447, &n4446, &n4448); int n4966; XOR2_X1( &n4440, &n4439, &n4966); int n4965; XOR2_X1( &n4436, &n4435, &n4965); int n4430; NAND2_X1( &n4429, &n4428, &n4430); int n4427; OAI21_X1( &n4437, &n4440, &n4424, &n4427); int n4418; INV_X1( &n4446, &n4418); int n4420; NAND2_X1( &n2347, &n4447, &n4420); int n4394; INV_X1( &n4428, &n4394); int n4431; OAI21_X1( &n4433, &n4432, &n4435, &n4431); int n4453; NAND2_X1( &n4458, &n4203, &n4453); int n4210; XNOR2_X1( &n4520, &n4196, &n4210); int n4124; OAI21_X1( &n4267, &n4440, &n4265, &n4124); int n4017; NAND2_X1( &n4129, &n1989, &n4017); int n3968; XNOR2_X1( &n3967, &n3966, &n3968); int n3957; AOI21_X1( &n4053, &n3967, &n2331, &n3957); int n3406; NOR2_X1( &n3403, &n3402, &n3406); int n3388; NOR2_X1( &n3383, &n3382, &n3388); int n3368; NOR2_X1( &n3365, &n3376, &n3368); int n2901; INV_X1( &n3382, &n2901); int n2893; OAI21_X1( &n3424, &n2892, &n3417, &n2893); int n2885; NOR2_X1( &n2884, &n3402, &n2885); int n2842; INV_X1( &n3402, &n2842); int n5473; AOI22_X1( &n2323, &n5468, &n5467, &n5466, &n5473); int n2374; XNOR2_X1( &n4678, &n4524, &n2374); int n4578; INV_X1( &n4539, &n4578); int n4958; NOR2_X2( &n1948, &n4167, &n4958); int n4585; NAND2_X2( &n1871, &n1868, &n4585); int n4959; AOI21_X4( &n1812, &n5127, &n1885, &n4959); int n3419; OR2_X2( &n2885, &n3403, &n3419); int n2191; INV_X1( &n3388, &n2191); int n1699; OR2_X1( &n5191, &n5190, &n1699); int n5131; NAND2_X1( &n3969, &n3968, &n5131); int n3413; INV_X1( &n3419, &n3413); int n1683; AND2_X1( &n3388, &n3405, &n1683); int n2895; NAND2_X1( &n1842, &n3419, &n2895); int n4579; NAND2_X1( &n4492, &n4493, &n4579); int n4580; NAND2_X1( &n2025, &n2027, &n4580); int n3375; INV_X1( &n3376, &n3375); int n4697; INV_X1( &n4585, &n4697); int n2197; NOR2_X1( &n4698, &n4697, &n2197); int n4875; NOR2_X1( &n2197, &n2195, &n4875); int n2117; NOR2_X1( &n2027, &n2025, &n2117); int n3374; OAI21_X1( &n2901, &n3397, &n3383, &n3374); int n3558; INV_X1( &n3406, &n3558); int n4933; AND2_X1( &n4965, &n4966, &n4933); int intadd_22_A_2_; NAND2_X1( &a1_w[22], &n5709, &intadd_22_A_2_); int n5657, n5592; FA_X1( &n5596, &n5595, &n5594, &n5657, &n5592); int n5534; XOR2_X1( &n5473, &n5472, &n5534); int n5290; NAND2_X1( &n5191, &n5190, &n5290); int n5129; AOI21_X1( &n5126, &n5128, &n5127, &n5129); int n5118; NAND2_X1( &n5117, &n5116, &n5118); int n5113; AOI21_X1( &n5112, &n2362, &n5768, &n5113); int n5756; INV_X1( &n5759, &n5756); int n4969; NOR2_X1( &n5126, &n5125, &n4969); int n5140; XOR2_X1( &n4966, &n4965, &n5140); int n4964; OAI21_X1( &n4957, &n4959, &n4958, &n4964); int n4950; NOR2_X1( &n4949, &n4958, &n4950); int n4885; OAI21_X1( &n5274, &n4875, &n5271, &n4885); int n4874; NAND2_X1( &n4873, &n5364, &n4874); int n5289; NAND2_X1( &n4816, &n4815, &n5289); int n5156; NOR2_X1( &n4816, &n4815, &n5156); int n4736; OAI21_X1( &n4676, &n4678, &n4677, &n4736); int n4641; XOR2_X1( &n4640, &n4639, &n4641); int n4604; AOI21_X1( &n4584, &n4586, &n4585, &n4604); int n4650; NAND2_X1( &n2374, &n4531, &n4650); int n4651; NOR2_X1( &n2374, &n4531, &n4651); int n4515; AOI21_X1( &n4695, &n4585, &n4690, &n4515); int n4443; INV_X1( &n4933, &n4443); int n4441; XNOR2_X1( &n4431, &n4430, &n4441); int n4442; XNOR2_X1( &n4427, &n4426, &n4442); int n4419; AOI21_X1( &n4418, &n4445, &n4447, &n4419); int n4444; AOI21_X1( &n4394, &n4431, &n4429, &n4444); int n4337; AOI21_X1( &n4307, &n4585, &n4308, &n4337); int n4292; XNOR2_X1( &n4585, &n4291, &n4292); int n4125; XNOR2_X1( &n4124, &n4123, &n4125); int n3972; INV_X1( &n5131, &n3972); int n4952; NOR2_X1( &n3969, &n3968, &n4952); int n3970; XOR2_X1( &n3957, &n3956, &n3970); int n3421; AOI21_X1( &n3418, &n3420, &n3419, &n3421); int n3409; OAI21_X1( &n3554, &n3558, &n3408, &n3409); int n3411; NAND2_X1( &n3408, &n3558, &n3411); int n3404; NAND2_X1( &n3406, &n3555, &n3404); int n3366; INV_X1( &n3374, &n3366); int n3370; INV_X1( &n3368, &n3370); int n2894; INV_X1( &n2893, &n2894); int n3416; NAND2_X1( &n2842, &n3408, &n3416); int n3422; OR2_X1( &n3416, &n3415, &n3422); int n2270; OAI21_X2( &n3421, &n3557, &n3422, &n2270); int n4728; XNOR2_X1( &n4875, &n2193, &n4728); int n2160; XNOR2_X2( &n1748, &n2270, &n2160); int n3551; NOR2_X1( &n3405, &n3404, &n3551); int n3386; NAND2_X2( &n2894, &n2895, &n3386); int n4951; INV_X4( &n4959, &n4951); int n2007; AND2_X2( &n2161, &n2160, &n2007); int n2157; XNOR2_X2( &n3558, &n1796, &n2157); int n2170; NOR2_X4( &n2160, &n2161, &n2170); int n1678; OR2_X1( &n4728, &n4727, &n1678); int n5132; INV_X1( &n4952, &n5132); int n1996; INV_X1( &n4579, &n1996); int n2262; OAI21_X2( &n4580, &n2117, &n4579, &n2262); int n2271; OAI21_X2( &n3413, &n3557, &n3416, &n2271); int n4231; NOR2_X1( &n4126, &n4125, &n4231); int n3399; INV_X1( &n3386, &n3399); int n4581; INV_X1( &n2117, &n4581); int n4765; NAND2_X1( &n4578, &n4581, &n4765); int n5277; INV_X1( &n4875, &n5277); int n5368; AOI21_X1( &n5275, &n5277, &n5276, &n5368); int n1667; OR2_X1( &n3412, &n3411, &n1667); int n1664; OR2_X1( &n4293, &n4292, &n1664); int n3384; NOR2_X1( &n2869, &n3416, &n3384); int n3387; AOI21_X1( &n3385, &n3386, &n3398, &n3387); int n4953; NAND2_X1( &n3971, &n3970, &n4953); int n4954; OR2_X2( &n3971, &n3970, &n4954); int n4148; NAND2_X1( &n4954, &n5132, &n4148); int n4770; INV_X1( &n2262, &n4770); int intadd_22_A_1_; NAND2_X1( &a1_w[22], &n5710, &intadd_22_A_1_); int n5291; INV_X1( &n5290, &n5291); int n5292; INV_X1( &n5289, &n5292); int n5192; NAND2_X1( &n1699, &n5290, &n5192); int n5133; NAND2_X1( &n5132, &n5131, &n5133); int n5136; XNOR2_X1( &n5130, &n5129, &n5136); int n5773; XNOR2_X1( &n5119, &n5118, &n5773); int n5765; AOI21_X1( &n5084, &n5085, &n5756, &n5765); int n5121; XNOR2_X1( &n5127, &n4969, &n5121); int n4955; NAND2_X1( &n4954, &n4953, &n4955); int n4956; OAI21_X1( &n5131, &n5134, &n4952, &n4956); int n5139; XNOR2_X1( &n4951, &n4950, &n5139); int n4886; XNOR2_X1( &n4885, &n4884, &n4886); int n5288; INV_X1( &n5156, &n5288); int n4889, n4744; FA_X1( &n4738, &n4737, &n4736, &n4889, &n4744); int n4767; NAND2_X1( &n4728, &n4727, &n4767); int n4653; OAI21_X1( &n4650, &n4652, &n4651, &n4653); int n4655; NOR2_X1( &n4649, &n4651, &n4655); int n4642; XOR2_X1( &n4604, &n4603, &n4642); int n4574; NAND2_X1( &n4581, &n4580, &n4574); int n4532; INV_X1( &n4651, &n4532); int n4536; XOR2_X1( &n4515, &n4514, &n4536); int n4456; INV_X1( &n4444, &n4456); int n4931; NAND2_X1( &n4442, &n4441, &n4931); int n4930; NOR2_X1( &n4442, &n4441, &n4930); int n4654; OAI21_X1( &n4419, &n4444, &n4420, &n4654); int n4423; XOR2_X1( &n4337, &n4336, &n4423); int n4467; NAND2_X1( &n4293, &n4292, &n4467); int n4466; NOR2_X1( &n4229, &n4231, &n4466); int n4230; NAND2_X1( &n4126, &n4125, &n4230); int n4127; INV_X1( &n4231, &n4127); int n3552; INV_X1( &n3551, &n3552); int n3553; AOI21_X1( &n3409, &n3410, &n3558, &n3553); int n3367; OAI21_X1( &n3377, &n3366, &n3365, &n3367); int n4469; OAI21_X1( &n4230, &n4232, &n4231, &n4469); int n2159; XNOR2_X2( &n1759, &n2271, &n2159); int n4145; NAND2_X2( &n3559, &n2157, &n4145); int n4131; NAND2_X2( &n3560, &n2159, &n4131); int n2099; AOI21_X1( &n3374, &n3386, &n3375, &n2099); int n1995; NOR2_X1( &n4539, &n1996, &n1995); int n1975; NOR2_X1( &n4149, &n4148, &n1975); int n1908; INV_X1( &n3384, &n1908); int n4135; NOR2_X4( &n2159, &n3560, &n4135); int n4138; NOR2_X2( &n2007, &n2170, &n4138); int n5370; XOR2_X1( &n5369, &n5368, &n5370); int n1765; AND2_X1( &n3384, &n3398, &n1765); int n1724; AND2_X1( &n5288, &n5289, &n1724); int n1722; AND2_X1( &n1678, &n4767, &n1722); int n1693; OR2_X2( &n4642, &n4641, &n1693); int n1979; INV_X1( &n4765, &n1979); int n5539; OAI21_X1( &n5278, &n5279, &n5368, &n5539); int n2260; INV_X1( &n4953, &n2260); int n2072; INV_X1( &n1693, &n2072); int n2071; NOR2_X1( &n4765, &n2072, &n2071); int n2273; INV_X1( &n3553, &n2273); int n1813; NOR2_X1( &n3551, &n2273, &n1813); int n1955; NOR2_X1( &n3387, &n2191, &n1955); int n2190; AOI21_X1( &n1955, &n1765, &n1683, &n2190); int n1993; NAND2_X1( &n1664, &n4466, &n1993); int n1978; INV_X1( &n4770, &n1978); int n3400; OR2_X2( &n3557, &n1908, &n3400); int n1907; AOI21_X1( &n1719, &n3399, &n3400, &n1907); int n2158; AND2_X1( &n3552, &n3553, &n2158); int n2009; NOR2_X2( &n2170, &n4135, &n2009); int n2008; NOR2_X1( &n2170, &n4131, &n2008); int n2006; NOR2_X1( &n2008, &n2007, &n2006); int n5542; OAI21_X1( &n5539, &n5541, &n5540, &n5542); int n5293; AOI21_X1( &n5291, &n1699, &n5292, &n5293); int n5294; NAND2_X1( &n1699, &n5288, &n5294); int n5453; XNOR2_X1( &n5539, &n5287, &n5453); int n5135; XOR2_X1( &n5134, &n5133, &n5135); int n5777; NAND2_X1( &n5121, &n5120, &n5777); int n5774; OAI21_X1( &n5113, &n5765, &n5114, &n5774); int n5776; NOR2_X1( &n5121, &n5120, &n5776); int n5138; XNOR2_X1( &n4956, &n4955, &n5138); int n4932; INV_X1( &n4930, &n4932); int n5360, n4739; FA_X1( &n4891, &n4890, &n4889, &n5360, &n4739); int n4768; INV_X1( &n4767, &n4768); int n4771; NAND2_X1( &n1678, &n1693, &n4771); int n4740; INV_X1( &n4739, &n4740); int n4732; AOI21_X1( &n4653, &n4655, &n4654, &n4732); int n4687; NAND2_X1( &n4642, &n4641, &n4687); int n4533; NAND2_X1( &n4532, &n4650, &n4533); int n4468; INV_X1( &n4467, &n4468); int n4460; XNOR2_X1( &n4456, &n4455, &n4460); int n4449; AOI21_X1( &n4445, &n4456, &n2347, &n4449); int n4909; OAI21_X1( &n4931, &n4930, &n4443, &n4909); int n4516; INV_X1( &n4654, &n4516); int n4294; NAND2_X1( &n1664, &n4467, &n4294); int n4132; INV_X1( &n4131, &n4132); int n4130; NAND2_X1( &n4127, &n4230, &n4130); int n4134; INV_X1( &n4135, &n4134); int n3369; AOI21_X1( &n3367, &n3386, &n3368, &n3369); int n5553; NAND2_X1( &n5543, &n5542, &n5553); int n2327; OR2_X1( &n4741, &n4740, &n2327); int n1992; AOI21_X2( &n4468, &n4469, &n1664, &n1992); int n1954; NAND2_X1( &n1765, &n3405, &n1954); int n4133; OAI21_X4( &n4145, &n1801, &n2158, &n4133); int n4147; AOI21_X2( &n2260, &n3972, &n4954, &n4147); int n1972; OAI21_X2( &n4150, &n4147, &n4149, &n1972); int n2152; NAND2_X2( &n1813, &n1667, &n2152); int n1923; AND2_X1( &n1989, &n4130, &n1923); int n1924; NOR2_X1( &n1989, &n4130, &n1924); int n2005; NAND2_X1( &n2009, &n4133, &n2005); int n2184; NAND3_X1( &n3400, &n3399, &n1719, &n2184); int n2143; OAI21_X1( &n3369, &n3400, &n3370, &n2143); int n2183; INV_X1( &n1907, &n2183); int n3576; NAND2_X1( &n2184, &n2183, &n3576); int n2098; OAI21_X1( &n2099, &n3400, &n3376, &n2098); int n2189; NAND3_X1( &n1954, &n3387, &n2191, &n2189); int n4228; OR2_X1( &n3576, &n3575, &n4228); int n5572; XOR2_X1( &n5553, &n5552, &n5572); int n5398, n5374; FA_X1( &n5362, &n5361, &n5360, &n5398, &n5374); int n5785; NAND2_X1( &n5139, &n5138, &n5785); int n5781; NAND2_X1( &n5136, &n5135, &n5781); int n5782; OR2_X1( &n5136, &n5135, &n5782); int n5779; NAND2_X1( &n5774, &n5773, &n5779); int n5789; OR2_X1( &n5139, &n5138, &n5789); int n4934; NAND2_X1( &n4932, &n4931, &n4934); int n4948; INV_X1( &n4909, &n4948); int n4772; NOR2_X1( &n4771, &n4765, &n4772); int n4861; NAND2_X1( &n4741, &n4740, &n4861); int n4863; OAI21_X1( &n4730, &n4732, &n4731, &n4863); int n4769; INV_X1( &n4687, &n4769); int n4682; XOR2_X1( &n4732, &n4675, &n4682); int n4643; NAND2_X1( &n1693, &n4687, &n4643); int n4534; OAI21_X1( &n4652, &n4516, &n4649, &n4534); int n4945; NAND2_X1( &n4460, &n4459, &n4945); int n4944; NOR2_X1( &n4460, &n4459, &n4944); int n4462; XOR2_X1( &n4449, &n4448, &n4462); int n4422; XOR2_X1( &n4421, &n4516, &n4422); int n4298; INV_X1( &n4228, &n4298); int n4152; OAI21_X1( &n4147, &n5134, &n4148, &n4152); int n3812; NAND2_X1( &n4134, &n4131, &n3812); int n2251; AOI21_X2( &n4768, &n1678, &n4769, &n2251); int n2250; OAI21_X2( &n2251, &n4770, &n4771, &n2250); int n4136; NAND2_X4( &n2152, &n4153, &n4136); int n3571; XOR2_X2( &n2098, &n3379, &n3571); int n2004; NAND2_X2( &n2006, &n2005, &n2004); int n1929; AOI21_X2( &n4132, &n4134, &n4133, &n1929); int n1823; NOR2_X1( &n4144, &n4136, &n1823); int n1990; AOI21_X2( &n1972, &n4146, &n1975, &n1990); int n2286; OR2_X2( &n4136, &n3811, &n2286); int n1914; INV_X2( &n4136, &n1914); int n3810; INV_X2( &n4133, &n3810); int n1921; OR2_X1( &n4229, &n1990, &n1921); int n1846; NAND2_X1( &n2152, &n4145, &n1846); int n1701; AND2_X2( &n3575, &n3576, &n1701); int n1679; XNOR2_X1( &n4152, &n2334, &n1679); int n1804; AOI21_X1( &n1846, &n1958, &n1957, &n1804); int n1803; INV_X1( &n1804, &n1803); int n1844; NAND3_X1( &n1958, &n1846, &n1957, &n1844); int n4644; OR2_X1( &n4423, &n4422, &n4644); int n1920; NAND2_X1( &n1921, &n1923, &n1920); int n1845; NAND2_X1( &n1803, &n1844, &n1845); int n2073; AOI21_X1( &n4769, &n1693, &n2262, &n2073); int n3574; NAND2_X1( &n2190, &n2189, &n3574); int n3568; INV_X1( &n3571, &n3568); int n1913; NAND2_X2( &n1914, &n2009, &n1913); int n1916; AOI21_X2( &n1913, &n1915, &n4144, &n1916); int n5651, n5363; FA_X1( &n5400, &n5399, &n5398, &n5651, &n5363); int n5396; INV_X1( &n5363, &n5396); int n5788; INV_X1( &n5785, &n5788); int n5137; INV_X1( &n5781, &n5137); int n5783; OAI21_X1( &n5777, &n5776, &n5779, &n5783); int n4946; INV_X1( &n4944, &n4946); int n5145; XNOR2_X1( &n4934, &n4933, &n5145); int n4914; OAI21_X1( &n4945, &n4948, &n4944, &n4914); int n4862; INV_X1( &n4861, &n4862); int n4742; NAND2_X1( &n2327, &n4861, &n4742); int n4535; XNOR2_X1( &n4534, &n4533, &n4535); int n4494; NAND2_X1( &n4423, &n4422, &n4494); int n4297; INV_X1( &n1701, &n4297); int n4137; NOR2_X1( &n4135, &n4136, &n4137); int n4233; INV_X2( &n1990, &n4233); int n1927; INV_X2( &n1929, &n1927); int n1925; NOR2_X1( &n1990, &n4130, &n1925); int n2114; NOR2_X4( &n1916, &n2004, &n2114); int n4961; NOR2_X2( &n1845, &n1679, &n4961); int n1824; OAI21_X2( &n3810, &n2286, &n3661, &n1824); int n2285; NOR2_X2( &n1823, &n1824, &n2285); int n1994; INV_X2( &n4233, &n1994); int n2315; BUF_X1( &n4961, &n2315); int n1700; NAND2_X1( &n4297, &n4228, &n1700); int n4960; NAND2_X1( &n1845, &n1679, &n4960); int n4941; NOR2_X1( &n2315, &n4958, &n4941); int n2316; XOR2_X1( &n4233, &n4017, &n2316); int n1931; INV_X1( &n4137, &n1931); int n4647; OR2_X1( &n4536, &n4535, &n4647); int n4646; INV_X1( &n4494, &n4646); int n1919; AOI21_X1( &n1924, &n1925, &n4129, &n1919); int n4170; NAND2_X2( &n1920, &n1919, &n4170); int n1928; AND2_X1( &n4138, &n4137, &n1928); int n2078; INV_X1( &n2114, &n2078); int n1926; NOR2_X1( &n1927, &n4138, &n1926); int n1819; AOI22_X1( &n1818, &n1928, &n4138, &n1927, &n1819); int n2167; OAI21_X1( &n4297, &n2114, &n4298, &n2167); int n5654, n5663; FA_X1( &n5653, &n5652, &n5651, &n5654, &n5663); int n5786; AOI21_X1( &n5137, &n5783, &n5782, &n5786); int n4962; INV_X1( &n4960, &n4962); int n4947; NAND2_X1( &n4946, &n4945, &n4947); int n5366; AOI21_X1( &n4862, &n4863, &n2327, &n5366); int n4747; XNOR2_X1( &n4863, &n4742, &n4747); int n4645; NAND2_X1( &n4536, &n4535, &n4645); int n4465; NAND2_X1( &n4644, &n4494, &n4465); int n4295; AOI21_X1( &n4469, &n4233, &n4466, &n4295); int n4168; XNOR2_X2( &n3812, &n2285, &n4168); int n4928; NAND2_X2( &n4941, &n4951, &n4928); int n4766; OAI21_X4( &n1992, &n1994, &n1993, &n4766); int n1922; OAI21_X1( &n1926, &n1931, &n1930, &n1922); int n4939; OAI21_X2( &n4960, &n4961, &n4957, &n4939); int n4169; NAND2_X2( &n1819, &n1922, &n4169); int n2149; XOR2_X2( &n2114, &n1700, &n2149); int n4937; NOR2_X4( &n4168, &n2316, &n4937); int n4171; INV_X1( &n4170, &n4171); int n4688; INV_X1( &n4766, &n4688); int n1977; AOI21_X1( &n1978, &n4766, &n1979, &n1977); int n2070; NAND2_X1( &n4766, &n2071, &n2070); int n1865; INV_X1( &n4645, &n1865); int n1864; AOI21_X1( &n1865, &n4647, &n4646, &n1864); int n4935; NOR2_X2( &n4169, &n4170, &n4935); int n4905; XOR2_X1( &n4766, &n1995, &n4905); int n4927; BUF_X1( &n4937, &n4927); int intadd_22_B_3_; NAND2_X1( &a1_w[22], &n5708, &intadd_22_B_3_); int n5395; OAI21_X1( &n5364, &n5366, &n5365, &n5395); int n4963; NOR2_X1( &n4962, &n2315, &n4963); int n5147; XOR2_X1( &n4948, &n4947, &n5147); int n4929; INV_X1( &n4939, &n4929); int n4887; XOR2_X1( &n5366, &n4874, &n4887); int n4575; OAI21_X1( &n4579, &n4688, &n4539, &n4575); int n4537; NAND2_X1( &n4647, &n4645, &n4537); int n4296; XOR2_X1( &n4295, &n4294, &n4296); int n4172; INV_X1( &n4169, &n4172); int n2329; OR2_X1( &n4887, &n4886, &n2329); int n4917; NOR2_X2( &n4937, &n4935, &n4917); int n4938; AND2_X2( &n2316, &n4168, &n4938); int n2290; INV_X2( &n4935, &n2290); int n5295; AOI21_X2( &n2250, &n4772, &n4766, &n5295); int n2227; NOR2_X1( &n2149, &n4296, &n2227); int n2261; NAND2_X2( &n2073, &n2070, &n2261); int n4686; XNOR2_X1( &n4643, &n1977, &n4686); int n2335; XNOR2_X2( &n1722, &n2261, &n2335); int n4906; NAND2_X2( &n4296, &n2149, &n4906); int n1802; NOR2_X2( &n4937, &n4961, &n1802); int n4902; NAND2_X2( &n4939, &n4917, &n4902); int n1798; NOR2_X2( &n4935, &n4958, &n1798); int n1858; NAND2_X2( &n1798, &n1802, &n1858); int n1795; NOR2_X2( &n4959, &n1858, &n1795); int n2307; INV_X2( &n1795, &n2307); int n1730; OR2_X1( &n4927, &n4938, &n1730); int n4907; INV_X1( &n2227, &n4907); int n2289; INV_X1( &n4906, &n2289); int n4940; INV_X1( &n4927, &n4940); int n4936; NOR2_X1( &n4172, &n4171, &n4936); int n2084; XNOR2_X1( &n1724, &n5295, &n2084); int n2010; NAND2_X1( &n4929, &n4928, &n2010); int n5146; XOR2_X1( &n2010, &n1730, &n5146); int n5799; NAND2_X1( &n5145, &n5146, &n5799); int n5591, n5371; FA_X1( &n5397, &n5396, &n5395, &n5591, &n5371); int n5380; NAND2_X1( &n5371, &n5370, &n5380); int n5452; OAI21_X1( &n5293, &n5295, &n5294, &n5452); int n5193; OAI21_X1( &n5289, &n5295, &n5156, &n5193); int n5141; XNOR2_X1( &n4964, &n4963, &n5141); int n4942; NAND3_X1( &n4951, &n4941, &n4940, &n4942); int n4943; AOI21_X1( &n4938, &n4940, &n4939, &n4943); int n4919; INV_X1( &n4917, &n4919); int n5355; NAND2_X1( &n4887, &n4886, &n5355); int n4925; XOR2_X1( &n4575, &n4574, &n4925); int n4920; AOI21_X4( &n4936, &n4938, &n2290, &n4920); int n2206; NAND3_X2( &n4928, &n4920, &n4929, &n2206); int n5800; NOR2_X1( &n5146, &n5145, &n5800); int n4901; NAND2_X2( &n4951, &n4906, &n4901); int n2011; NAND2_X2( &n4942, &n4943, &n2011); int n1808; NOR2_X1( &n4901, &n1858, &n1808); int n1810; AOI21_X2( &n2289, &n4920, &n4902, &n1810); int n4903; NOR3_X2( &n1810, &n1808, &n2227, &n4903); int n1752; AND2_X1( &n4906, &n4907, &n1752); int n1729; OR2_X1( &n4935, &n4936, &n1729); int n5383; OR2_X1( &n5370, &n5371, &n5383); int n2297; INV_X1( &n4925, &n2297); int n5593, n5584; FA_X1( &n2348, &n5592, &n5591, &n5593, &n5584); int n5576, n5354; FA_X1( &n5454, &n5453, &n5452, &n5576, &n5354); int n5381; INV_X1( &n5380, &n5381); int n5385; NAND2_X1( &n5383, &n2329, &n5385); int n5382; INV_X1( &n5355, &n5382); int n5242; XNOR2_X1( &n5193, &n5192, &n5242); int n5792; NAND2_X1( &n5141, &n5140, &n5792); int n4967; NOR2_X1( &n5141, &n5140, &n4967); int n4888; NAND2_X1( &n2329, &n5355, &n4888); int n4908; NAND3_X4( &n2307, &n4920, &n4902, &n4908); int n2033; XNOR2_X1( &n4908, &n1752, &n2033); int n2175; XOR2_X2( &n2011, &n1729, &n2175); int n5802; NOR2_X2( &n2175, &n5147, &n5802); int n1890; NAND2_X1( &n5380, &n5383, &n1890); int n5148; NOR2_X1( &n5802, &n5800, &n5148); int n5803; NAND2_X1( &n5147, &n2175, &n5803); int n1607; INV_X1( &a1_i[26], &n1607); int n5384; AOI21_X1( &n5381, &n5383, &n5382, &n5384); int n5142; INV_X1( &n5792, &n5142); int n5791; INV_X1( &n4967, &n5791); int n5793; CLKBUF_X1( &n5791, &n5793); int n1816; OAI21_X1( &n5803, &n5802, &n5799, &n1816); int nullval30; DFFS_X1( &n1607, rst_n, clk, &nullval30, &a1_w[26]); int n5626; NAND2_X1( &n5681, &a1_w[26], &n5626); int n5693; NAND2_X1( &n4188, &a1_w[26], &n5693); int n5642; NAND2_X1( &n5710, &a1_w[26], &n5642); int n5143; AOI21_X2( &n5142, &n5791, &n5788, &n5143); int n5144; NAND2_X1( &n5789, &n5791, &n5144); int n5406; NAND2_X1( &n5683, &a1_w[26], &n5406); int n5407; NAND2_X1( &n2615, &a1_w[26], &n5407); int n5640; INV_X1( &n5642, &n5640); int n5408; INV_X1( &n5693, &n5408); int n5797; OAI21_X2( &n5143, &n5144, &n5786, &n5797); int n5700; INV_X1( &n5407, &n5700); int n3372; NAND2_X2( &n5407, &n2906, &n3372); int n5807; AOI21_X2( &n1816, &n5797, &n5148, &n5807); int n2897; NAND2_X1( &n3372, &n3378, &n2897); int n3371; NAND2_X1( &n5700, &n2720, &n3371); int n2907; INV_X1( &n3372, &n2907); int n2908; INV_X1( &n2897, &n2908); int n1747; AND2_X1( &n3372, &n3371, &n1747); int n2896; NOR2_X1( &n2897, &n3376, &n2896); int n1805; OAI21_X1( &n3371, &n2907, &n3377, &n1805); int n2868; NAND2_X1( &n2896, &n3384, &n2868); int n1935; XOR2_X1( &n2143, &n1747, &n1935); int n2909; AOI21_X1( &n1805, &n3374, &n2908, &n2909); int n2910; INV_X1( &n2896, &n2910); int n5561; NOR2_X2( &n3412, &n2868, &n5561); int n1784; NAND2_X1( &n5194, &n5561, &n1784); int n4179; NOR2_X2( &n1936, &n1935, &n4179); int n3572; NAND2_X1( &n1936, &n1935, &n3572); int n5195; OAI21_X1( &n2909, &n3399, &n2910, &n5195); int n5339; INV_X1( &n5561, &n5339); int n5565; BUF_X1( &n5195, &n5565); int n4837; AOI21_X1( &n5199, &n5195, &n5194, &n4837); int n4180; INV_X1( &n3572, &n4180); int n4838; NAND2_X1( &n1784, &n4837, &n4838); int n1939; NOR2_X1( &n5561, &n5195, &n1939); int n1605; INV_X1( &a1_i[28], &n1605); int n5338; INV_X1( &n5565, &n5338); int n1744; NOR2_X1( &n4180, &n4179, &n1744); int n1938; XNOR2_X1( &n1733, &n1939, &n1938); int n4819; NOR2_X1( &n1835, &n1938, &n4819); int n1687; DFFS_X1( &n1605, rst_n, clk, &n1687, &a1_w[28]); int intadd_20_A_7_; NAND2_X1( &b1_w[10], &a1_w[20], &intadd_20_A_7_); int n5625; NAND2_X1( &n4188, &a1_w[28], &n5625); int n5634; NAND2_X1( &n5683, &a1_w[28], &n5634); int n5223; NAND2_X1( &n5698, &a1_w[28], &n5223); int n5230; INV_X1( &n4819, &n5230); int n5226; NAND2_X2( &n1938, &n1835, &n5226); int n2309; NOR2_X1( &n1687, &n1760, &n2309); int n5635; INV_X1( &n2309, &n5635); int intadd_20_A_5_; NAND2_X1( &a1_w[21], &n5688, &intadd_20_A_5_); int n5630; XNOR2_X1( &n5626, &n5625, &n5630); int n5196; NAND2_X1( &n2309, &n4835, &n5196); int n5198; NAND2_X1( &n5635, &n4834, &n5198); int n5231; NAND2_X1( &n5230, &n5226, &n5231); int n3364; INV_X1( &n5226, &n3364); int n2281; INV_X1( &n5231, &n2281); int intadd_20_A_4_; NAND2_X1( &a1_w[20], &n5702, &intadd_20_A_4_); int n5197; INV_X1( &n5196, &n5197); int n5555; AND2_X1( &n5198, &n5194, &n5555); int n4839; NAND2_X1( &n5198, &n5196, &n4839); int intadd_20_A_3_; NAND2_X1( &a1_w[20], &n5708, &intadd_20_A_3_); int n5556; INV_X1( &n5555, &n5556); int n5564; AOI21_X1( &n5197, &n5199, &n5198, &n5564); int n5202; NAND2_X1( &n5561, &n5555, &n5202); int n4841; XNOR2_X1( &n4839, &n4838, &n4841); int intadd_20_A_2_; NAND2_X1( &a1_w[20], &n5709, &intadd_20_A_2_); int n5200; INV_X1( &n5564, &n5200); int n4844; INV_X1( &n4841, &n4844); int intadd_20_A_1_; NAND2_X1( &a1_w[20], &n5710, &intadd_20_A_1_); int n5201; AOI21_X1( &n5200, &n5555, &n5565, &n5201); int n5706; AOI21_X1( &n5703, &n5705, &n5704, &n5706); int n5222; NAND2_X1( &n5202, &n5201, &n5222); int intadd_20_A_0_; INV_X1( &n5706, &intadd_20_A_0_); int intadd_20_n8, intadd_20_SUM_0_; FA_X1( &intadd_20_A_0_, &intadd_20_B_0_, &intadd_20_CI, &intadd_20_n8, &intadd_20_SUM_0_); int intadd_20_B_7_; NAND2_X1( &a1_w[21], &n5707, &intadd_20_B_7_); int intadd_20_n7, intadd_20_SUM_1_; FA_X1( &intadd_20_A_1_, &intadd_20_B_1_, &intadd_20_n8, &intadd_20_n7, &intadd_20_SUM_1_); int intadd_20_B_6_; NAND2_X1( &a1_w[20], &n5707, &intadd_20_B_6_); int n4221; NAND2_X1( &n4210, &intadd_20_SUM_1_, &n4221); int n4220; NOR2_X1( &n4210, &intadd_20_SUM_1_, &n4220); int intadd_20_B_4_; NAND2_X1( &a1_w[21], &n5708, &intadd_20_B_4_); int n4222; INV_X1( &n4220, &n4222); int intadd_20_B_3_; NAND2_X1( &a1_w[21], &n5709, &intadd_20_B_3_); int n4224; NAND2_X1( &n4222, &n4221, &n4224); int intadd_20_B_2_; NAND2_X1( &a1_w[21], &n5710, &intadd_20_B_2_); int intadd_20_n6, intadd_20_SUM_2_; FA_X1( &intadd_20_A_2_, &intadd_20_B_2_, &intadd_20_n7, &intadd_20_n6, &intadd_20_SUM_2_); int n1540; INV_X1( &b1_i[29], &n1540); int intadd_20_n5, intadd_20_SUM_3_; FA_X1( &intadd_20_A_3_, &intadd_20_B_3_, &intadd_20_n6, &intadd_20_n5, &intadd_20_SUM_3_); int nullval31; DFFS_X1( &n1540, rst_n, clk, &nullval31, &b1_w[29]); int n1539; INV_X1( &b1_i[30], &n1539); int n5503; NAND2_X1( &b1_w[29], &n5502, &n5503); int n5318; NAND2_X1( &b1_w[29], &n5505, &n5318); int n5204; NAND2_X1( &b1_w[29], &n5506, &n5204); int intadd_20_n4, intadd_20_SUM_4_; FA_X1( &intadd_20_A_4_, &intadd_20_B_4_, &intadd_20_n5, &intadd_20_n4, &intadd_20_SUM_4_); int nullval32; DFFS_X1( &n1539, rst_n, clk, &nullval32, &b1_w[30]); int n1603; INV_X1( &a1_i[30], &n1603); int n5508; NAND2_X1( &b1_w[30], &n5505, &n5508); int n5510; XOR2_X1( &n5504, &n5503, &n5510); int n5319; NAND2_X1( &b1_w[30], &n5506, &n5319); int n5326; NOR2_X1( &n5204, &n5203, &n5326); int n5321; AND2_X1( &n5203, &n5204, &n5321); int intadd_20_n3, intadd_20_SUM_5_; FA_X1( &intadd_20_A_5_, &intadd_20_B_5_, &intadd_20_n4, &intadd_20_n3, &intadd_20_SUM_5_); int n1689; DFFS_X1( &n1603, rst_n, clk, &n1689, &a1_w[30]); int n5714; OR2_X1( &n5712, &n5711, &n5714); int n5613; NAND2_X1( &n5698, &a1_w[30], &n5613); int n5328; OR2_X1( &n5327, &n5326, &n5328); int n5322; INV_X1( &n5321, &n5322); int n5518; OR2_X1( &n5319, &n5318, &n5518); int n5520; NAND2_X1( &n5318, &n5319, &n5520); int n5215; NOR2_X1( &n5321, &n5326, &n5215); int n2366; NAND2_X1( &n5714, &n5713, &n2366); int n2310; NOR2_X1( &n1689, &n1760, &n2310); int n5335; INV_X1( &n2310, &n5335); int intadd_20_n2, intadd_20_SUM_6_; FA_X1( &intadd_20_A_6_, &intadd_20_B_6_, &intadd_20_n3, &intadd_20_n2, &intadd_20_SUM_6_); int nullval33; DFFS_X1( &n2366, rst_n, clk, &nullval33, &p_o[1]); int n5717; INV_X1( &n5715, &n5717); int n5615; XOR2_X1( &n5614, &n5613, &n5615); int n5519; INV_X1( &n5518, &n5519); int n5515; INV_X1( &n5520, &n5515); int n5330; AND2_X1( &n5323, &n5322, &n5330); int n5334; NAND2_X1( &n5520, &n5518, &n5334); int n5219; XNOR2_X1( &n5215, &n5214, &n5219); int n2340; XOR2_X1( &n5717, &n5716, &n2340); int n5554; NAND2_X1( &n5220, &n5219, &n5554); int intadd_20_n1, intadd_20_SUM_7_; FA_X1( &intadd_20_A_7_, &intadd_20_B_7_, &intadd_20_n2, &intadd_20_n1, &intadd_20_SUM_7_); int nullval34; DFFS_X1( &n2340, rst_n, clk, &nullval34, &p_o[2]); int n5720; INV_X1( &n5718, &n5720); int n5661; XNOR2_X1( &n5593, &intadd_20_n1, &n5661); int n5340; NAND2_X1( &n5555, &n5554, &n5340); int n5517; AOI21_X1( &n5328, &n5330, &n5329, &n5517); int n5516; NAND2_X1( &n5324, &n5330, &n5516); int n5341; OR2_X1( &n5220, &n5219, &n5341); int n5342; INV_X1( &n5554, &n5342); int n5722; NAND2_X1( &n5720, &n5719, &n5722); int n5521; INV_X1( &n5517, &n5521); int n5522; NOR2_X1( &n5516, &n5515, &n5522); int n5343; OAI21_X1( &n5341, &n5564, &n5342, &n5343); int n5344; NOR2_X1( &n5340, &n5339, &n5344); int n5345; NOR2_X1( &n5340, &n5338, &n5345); int n5331; OAI21_X1( &n5517, &n5528, &n5516, &n5331); int n5332; NOR2_X1( &n5325, &n5516, &n5332); int n5560; INV_X1( &n5341, &n5560); int n2368; XNOR2_X1( &n5722, &n5721, &n2368); int nullval35; DFFS_X1( &n2368, rst_n, clk, &nullval35, &p_o[3]); int n5724; INV_X1( &n5723, &n5724); int n5525; NAND3_X1( &n5524, &n5523, &n5522, &n5525); int n5526; AOI21_X1( &n5519, &n5521, &n5520, &n5526); int n5527; INV_X1( &n5522, &n5527); int n5346; NOR3_X1( &n5345, &n5344, &n5343, &n5346); int n5333; AOI21_X1( &n5331, &n5524, &n5332, &n5333); int n5221; NOR2_X1( &n5342, &n5560, &n5221); int n2338; XOR2_X1( &n5725, &n5724, &n2338); int nullval36; DFFS_X1( &n2338, rst_n, clk, &nullval36, &p_o[4]); int n5728; INV_X1( &n5726, &n5728); int n5529; OAI211_X1( &n5526, &n5525, &n5528, &n5527, &n5529); int n5336; XNOR2_X1( &n5334, &n5333, &n5336); int n5225; XNOR2_X1( &n5222, &n5221, &n5225); int n5730; NAND2_X1( &n5728, &n5727, &n5730); int n5337; INV_X1( &n5336, &n5337); int n5559; NAND2_X1( &n5335, &n5336, &n5559); int n2372; XNOR2_X1( &n5730, &n5729, &n2372); int nullval37; DFFS_X1( &n2372, rst_n, clk, &nullval37, &p_o[5]); int n5734; NAND2_X1( &n5732, &n5731, &n5734); int n5563; NAND2_X1( &n5559, &n5554, &n5563); int n5557; NAND2_X1( &n2310, &n5337, &n5557); int n2383; XOR2_X1( &n5734, &n5733, &n2383); int nullval38; DFFS_X1( &n2383, rst_n, clk, &nullval38, &p_o[6]); int n5737; INV_X1( &n5735, &n5737); int n5558; INV_X1( &n5557, &n5558); int n5566; NOR2_X1( &n5563, &n5556, &n5566); int n5347; NAND2_X1( &n5559, &n5557, &n5347); int n2132; OAI21_X1( &n5566, &n5565, &n5561, &n2132); int n5739; NAND2_X1( &n5737, &n5736, &n5739); int n5562; AOI21_X1( &n5558, &n5560, &n5559, &n5562); int n5351; XNOR2_X1( &n5347, &n5346, &n5351); int n2384; XNOR2_X1( &n5739, &n5738, &n2384); int n2134; OAI21_X1( &n5562, &n5564, &n5563, &n2134); int n5440; NAND2_X1( &n5351, &n5350, &n5440); int nullval39; DFFS_X1( &n2384, rst_n, clk, &nullval39, &p_o[7]); int n5742; INV_X1( &n5740, &n5742); int n5444; INV_X1( &n5440, &n5444); int n5348; INV_X1( &n5351, &n5348); int n2385; XOR2_X1( &n5742, &n5741, &n2385); int n2133; INV_X1( &n2134, &n2133); int n2131; NAND2_X1( &n2133, &n2132, &n2131); int nullval40; DFFS_X1( &n2385, rst_n, clk, &nullval40, &p_o[8]); int n5745; NAND2_X1( &n2387, &n5743, &n5745); int n5442; NAND2_X1( &n5349, &n5348, &n5442); int n2386; XOR2_X1( &n5745, &n5744, &n2386); int n5571; XOR2_X1( &n2131, &n5570, &n5571); int nullval41; DFFS_X1( &n2386, rst_n, clk, &nullval41, &p_o[9]); int n5748; INV_X1( &n5746, &n5748); int n5573; XNOR2_X1( &n5572, &n5571, &n5573); int n5352; NAND2_X1( &n5442, &n5440, &n5352); int n5750; NAND2_X1( &n5748, &n5747, &n5750); int n2358; XNOR2_X1( &n5750, &n5749, &n2358); int nullval42; DFFS_X1( &n2358, rst_n, clk, &nullval42, &p_o[10]); int n5753; NAND2_X1( &n2365, &n5751, &n5753); int n2388; XOR2_X1( &n5753, &n5752, &n2388); int nullval43; DFFS_X1( &n2388, rst_n, clk, &nullval43, &p_o[11]); int n5754; INV_X1( &n5758, &n5754); int n5755; NAND2_X1( &n5754, &n5757, &n5755); int n2357; XOR2_X1( &n5756, &n5755, &n2357); int nullval44; DFFS_X1( &n2357, rst_n, clk, &nullval44, &p_o[12]); int n5764; OAI21_X1( &n5757, &n5759, &n5758, &n5764); int n5762; INV_X1( &n5760, &n5762); int n5763; NAND2_X1( &n5762, &n5761, &n5763); int n2389; XOR2_X1( &n5764, &n5763, &n2389); int nullval45; DFFS_X1( &n2389, rst_n, clk, &nullval45, &p_o[13]); int n5769; INV_X1( &n5765, &n5769); int n5767; NAND2_X1( &n2361, &n5766, &n5767); int n2344; XOR2_X1( &n5769, &n5767, &n2344); int nullval46; DFFS_X1( &n2344, rst_n, clk, &nullval46, &p_o[14]); int n5772; AOI21_X1( &n5768, &n5769, &n2361, &n5772); int n5771; NAND2_X1( &n2362, &n5770, &n5771); int n2339; XNOR2_X1( &n5772, &n5771, &n2339); int nullval47; DFFS_X1( &n2339, rst_n, clk, &nullval47, &p_o[15]); int n5775; INV_X1( &n5773, &n5775); int n2345; XOR2_X1( &n5775, &n5774, &n2345); int nullval48; DFFS_X1( &n2345, rst_n, clk, &nullval48, &p_o[16]); int n5778; INV_X1( &n5776, &n5778); int n5780; NAND2_X1( &n5778, &n5777, &n5780); int n2363; XNOR2_X1( &n5780, &n5779, &n2363); int nullval49; DFFS_X1( &n2363, rst_n, clk, &nullval49, &p_o[17]); int n5784; NAND2_X1( &n5782, &n5781, &n5784); int n2382; XOR2_X1( &n5784, &n5783, &n2382); int nullval50; DFFS_X1( &n2382, rst_n, clk, &nullval50, &p_o[18]); int n5787; NAND2_X1( &n5789, &n5785, &n5787); int n5790; INV_X1( &n5786, &n5790); int n2391; XOR2_X1( &n5787, &n5790, &n2391); int nullval51; DFFS_X1( &n2391, rst_n, clk, &nullval51, &p_o[19]); int n5795; AOI21_X1( &n5788, &n5790, &n5789, &n5795); int n5794; NAND2_X1( &n5793, &n5792, &n5794); int n2390; XNOR2_X1( &n5795, &n5794, &n2390); int nullval52; DFFS_X1( &n2390, rst_n, clk, &nullval52, &p_o[20]); int n5796; INV_X1( &n5800, &n5796); int n5798; NAND2_X1( &n5796, &n5799, &n5798); int n5801; INV_X1( &n5797, &n5801); int n2356; XNOR2_X1( &n5798, &n5801, &n2356); int nullval53; DFFS_X1( &n2356, rst_n, clk, &nullval53, &p_o[21]); int n5806; OAI21_X1( &n5799, &n5801, &n5800, &n5806); int n5804; INV_X1( &n5802, &n5804); int n5805; NAND2_X1( &n5804, &n5803, &n5805); int n2392; XOR2_X1( &n5806, &n5805, &n2392); int nullval54; DFFS_X1( &n2392, rst_n, clk, &nullval54, &p_o[22]); int n5822; INV_X1( &n5807, &n5822); int n1610; INV_X1( &a1_i[23], &n1610); int n5846; DFFS_X1( &n1610, rst_n, clk, &n5846, &a1_w[23]); int n1608; INV_X1( &a1_i[25], &n1608); int intadd_22_B_2_; NAND2_X1( &a1_w[23], &n5710, &intadd_22_B_2_); int intadd_22_B_4_; NAND2_X1( &a1_w[23], &n5708, &intadd_22_B_4_); int intadd_22_B_5_; NAND2_X1( &a1_w[23], &n5702, &intadd_22_B_5_); int intadd_22_A_3_; NAND2_X1( &a1_w[23], &n5709, &intadd_22_A_3_); int intadd_22_B_0_; NAND2_X1( &a1_w[23], &n5683, &intadd_22_B_0_); int intadd_22_B_1_; NAND2_X1( &a1_w[23], &n4346, &intadd_22_B_1_); int n5611; NAND2_X1( &n1793, &a1_w[23], &n5611); int n4206; OAI22_X1( &n4205, &n5838, &n1760, &n5846, &n4206); int n5689; NAND2_X1( &n5698, &a1_w[23], &n5689); int n1688; DFFS_X1( &n1608, rst_n, clk, &n1688, &a1_w[25]); int n1606; INV_X1( &a1_i[27], &n1606); int n5690; INV_X1( &n5689, &n5690); int n5850; AND2_X1( &n5683, &a1_w[25], &n5850); int n5849; AND2_X1( &n4188, &a1_w[25], &n5849); int n5848; AND2_X1( &n5709, &a1_w[25], &n5848); int n5841; AND2_X1( &n5710, &a1_w[25], &n5841); int n5616; XNOR2_X1( &n5612, &n5611, &n5616); int n5607; NAND2_X1( &a1_w[25], &n5708, &n5607); int n4208; OAI21_X1( &n4206, &n5689, &n4207, &n4208); int n3381; NOR2_X1( &n5692, &n5689, &n3381); int n5685; NAND2_X1( &n5698, &a1_w[25], &n5685); int n1775; OR2_X1( &n1688, &n1760, &n1775); int n1684; DFFS_X1( &n1606, rst_n, clk, &n1684, &a1_w[27]); int n1604; INV_X1( &a1_i[29], &n1604); int intadd_22_A_0_; OAI21_X1( &n5690, &n5692, &n5691, &intadd_22_A_0_); int intadd_24_A_0_; AOI21_X1( &n5685, &n5687, &n5686, &intadd_24_A_0_); int n5627; NAND2_X1( &n5710, &a1_w[27], &n5627); int n5617; XNOR2_X1( &n5616, &n5615, &n5617); int n5609; XNOR2_X1( &n5608, &n5607, &n5609); int n5694; NAND2_X1( &n5684, &a1_w[27], &n5694); int n5644; NAND2_X1( &n5405, &a1_w[27], &n5644); int n5697; NAND2_X1( &n5698, &a1_w[27], &n5697); int n4450; NAND2_X1( &intadd_20_SUM_0_, &n4208, &n4450); int n4451; OR2_X1( &intadd_20_SUM_0_, &n4208, &n4451); int n3573; XNOR2_X1( &n5691, &n3381, &n3573); int n3569; XOR2_X1( &n1775, &n3380, &n3569); int n2396; NOR2_X1( &n2395, &n5685, &n2396); int n4212; NOR2_X2( &n3568, &n3569, &n4212); int n4818; NOR2_X2( &n4179, &n4212, &n4818); int n2188; INV_X1( &n3573, &n2188); int n2314; NOR2_X1( &n1684, &n1760, &n2314); int n2186; NOR2_X1( &n2189, &n2188, &n2186); int n4217; NOR2_X1( &n3574, &n3573, &n4217); int n4216; NAND2_X1( &n3573, &n3574, &n4216); int intadd_22_n6, intadd_22_SUM_0_; FA_X1( &intadd_22_A_0_, &intadd_22_B_0_, &intadd_22_CI, &intadd_22_n6, &intadd_22_SUM_0_); int intadd_24_n4, intadd_23_B_0_; FA_X1( &intadd_24_A_0_, &n5843, &n5850, &intadd_24_n4, &intadd_23_B_0_); int n1690; DFFS_X1( &n1604, rst_n, clk, &n1690, &a1_w[29]); int n1602; INV_X1( &a1_i[31], &n1602); int n5701; INV_X1( &n5697, &n5701); int n5695; XNOR2_X1( &n5694, &n5693, &n5695); int n5631; NAND2_X1( &n5683, &a1_w[29], &n5631); int n5618; XOR2_X1( &n5610, &n5609, &n5618); int n5409; INV_X1( &n5694, &n5409); int n5696; AOI21_X1( &n5697, &n5407, &n5406, &n5696); int n5412; XNOR2_X1( &n5644, &n5642, &n5412); int n5633; NAND2_X1( &n5698, &a1_w[29], &n5633); int n4840; NOR2_X1( &n5700, &n5697, &n4840); int n4452; NAND2_X1( &n4451, &n4450, &n4452); int n4218; INV_X1( &n4216, &n4218); int n4209; INV_X1( &n4450, &n4209); int n4176; INV_X1( &n4212, &n4176); int n3578; INV_X1( &n4217, &n3578); int n3570; INV_X1( &n3569, &n3570); int n4175; NAND2_X2( &n4216, &n4228, &n4175); int n4173; XNOR2_X1( &n2397, &n2396, &n4173); int n2115; INV_X2( &n4175, &n2115); int n4211; NOR2_X2( &n3571, &n3570, &n4211); int n1934; INV_X1( &n4211, &n1934); int n4820; OAI21_X2( &n3572, &n4179, &n1934, &n4820); int n1774; OR2_X1( &n1690, &n1760, &n1774); int n1736; NOR2_X1( &n4212, &n4211, &n1736); int n2113; INV_X1( &n2115, &n2113); int n4821; AOI21_X1( &n4819, &n5226, &n4820, &n4821); int n5699; AOI21_X1( &n2314, &n5698, &a1_w[26], &n5699); int n2187; NOR2_X1( &n2190, &n2188, &n2187); int n2185; NOR2_X1( &n2187, &n2186, &n2185); int n3577; NAND2_X1( &n1701, &n2185, &n3577); int n4299; NOR2_X1( &n4218, &n4217, &n4299); int intadd_22_n5, intadd_22_SUM_1_; FA_X1( &intadd_22_A_1_, &intadd_22_B_1_, &intadd_22_n6, &intadd_22_n5, &intadd_22_SUM_1_); int intadd_24_n3, intadd_23_A_1_; FA_X1( &n5849, &n5842, &intadd_24_n4, &intadd_24_n3, &intadd_23_A_1_); int nullval55; DFFS_X1( &n1602, rst_n, clk, &nullval55, &a1_w[31]); int n1538; INV_X1( &b1_i[31], &n1538); int intadd_23_CI; AOI21_X1( &n5699, &n5701, &n5700, &intadd_23_CI); int intadd_23_B_2_; XNOR2_X1( &n5696, &n5695, &intadd_23_B_2_); int n5636; AOI21_X1( &n5633, &n5635, &n5634, &n5636); int n5637; XNOR2_X1( &n5632, &n5631, &n5637); int n5624; XOR2_X1( &n5618, &n5617, &n5624); int n5410; NOR2_X1( &n5696, &n5409, &n5410); int n5411; AOI21_X1( &n5408, &n5696, &n5409, &n5411); int n5404; NOR2_X1( &n2309, &n5633, &n5404); int n5224; XNOR2_X1( &n1774, &n5223, &n5224); int n4842; XNOR2_X1( &n5406, &n4840, &n4842); int n4823; NAND3_X1( &n5226, &n2115, &n4818, &n4823); int n4461; XOR2_X1( &n4453, &n4452, &n4461); int n4219; INV_X1( &n4299, &n4219); int n4223; AOI21_X1( &n4209, &n4453, &n4451, &n4223); int n4178; NAND2_X1( &n2115, &n4176, &n4178); int n4174; AND2_X1( &n4173, &intadd_22_SUM_1_, &n4174); int n4817; NAND2_X2( &n3578, &n3577, &n4817); int n3580; INV_X1( &n4820, &n3580); int intadd_23_A_0_; NOR2_X1( &intadd_22_SUM_1_, &n4173, &intadd_23_A_0_); int n4213; INV_X1( &n4817, &n4213); int n2381; OR2_X1( &n4299, &n4228, &n2381); int n2239; NAND2_X2( &n4818, &n2115, &n2239); int n2166; XOR2_X1( &n2167, &n4299, &n2166); int n1741; OR2_X1( &n1701, &n4299, &n1741); int n5628; NAND2_X1( &a1_w[31], &n2313, &n5628); int n4214; OAI21_X2( &n4213, &n2114, &n2113, &n4214); int n1843; NOR2_X1( &n2239, &n2114, &n1843); int n5234; INV_X1( &n1843, &n5234); int n1766; OR2_X1( &n2078, &n1741, &n1766); int intadd_22_n4, intadd_22_SUM_2_; FA_X1( &intadd_22_A_2_, &intadd_22_B_2_, &intadd_22_n5, &intadd_22_n4, &intadd_22_SUM_2_); int intadd_24_n2, intadd_23_A_2_; FA_X1( &n5841, &n5847, &intadd_24_n3, &intadd_24_n2, &intadd_23_A_2_); int intadd_23_n4, intadd_23_SUM_0_; FA_X1( &intadd_23_A_0_, &intadd_23_B_0_, &intadd_23_CI, &intadd_23_n4, &intadd_23_SUM_0_); int nullval56; DFFS_X1( &n1538, rst_n, clk, &nullval56, &b1_w[31]); int n5638; XOR2_X1( &n5637, &n5636, &n5638); int n5629; XNOR2_X1( &n5628, &n5627, &n5629); int n5507; NAND2_X1( &b1_w[31], &n5506, &n5507); int n5641; NOR2_X1( &n5411, &n5410, &n5641); int n5620; XNOR2_X1( &n5634, &n5404, &n5620); int n5441; NOR2_X1( &n5225, &n5224, &n5441); int n5437; NAND2_X1( &n5225, &n5224, &n5437); int n4843; INV_X1( &n4842, &n4843); int n5229; NOR2_X1( &n4841, &n4842, &n5229); int n4822; NAND3_X1( &n5226, &n4818, &n4817, &n4822); int n4760; NAND2_X1( &n2239, &n5231, &n4760); int n4911; NAND2_X1( &n4462, &n4461, &n4911); int n4910; NOR2_X1( &n4462, &n4461, &n4910); int n4300; XOR2_X1( &n4224, &n4223, &n4300); int n4227; NOR2_X1( &n4298, &n4219, &n4227); int n4679; OAI21_X1( &n4221, &n4220, &n4223, &n4679); int n4177; AOI21_X2( &n4211, &n4817, &n4176, &n4177); int n4304; NOR2_X1( &n4174, &intadd_23_A_0_, &n4304); int n3581; INV_X1( &intadd_23_SUM_0_, &n3581); int n3579; NAND2_X1( &n4817, &n4818, &n3579); int n4846; OAI211_X1( &n4822, &n4821, &n2114, &n4823, &n4846); int n4181; OAI21_X2( &n4177, &n2114, &n4178, &n4181); int n5232; NAND2_X2( &n3579, &n3580, &n5232); int n1953; XOR2_X2( &n4181, &n1744, &n1953); int n4753; NAND2_X4( &n4304, &n1953, &n4753); int n4301; XOR2_X2( &n4214, &n1736, &n4301); int n2201; INV_X1( &n4300, &n2201); int n5236; INV_X1( &n5234, &n5236); int n5439; NAND2_X1( &n5437, &n5440, &n5439); int n2101; OAI21_X1( &n2281, &n1843, &n5232, &n2101); int n4302; INV_X1( &n4301, &n4302); int n2103; INV_X1( &n5232, &n2103); int n2102; NAND3_X1( &n5231, &n5234, &n2103, &n2102); int n2180; NOR2_X1( &n3364, &n5229, &n2180); int intadd_22_n3, intadd_22_SUM_3_; FA_X1( &intadd_22_A_3_, &intadd_22_B_3_, &intadd_22_n4, &intadd_22_n3, &intadd_22_SUM_3_); int intadd_24_n1, intadd_23_A_3_; FA_X1( &n5840, &n5848, &intadd_24_n2, &intadd_24_n1, &intadd_23_A_3_); int intadd_23_B_1_; INV_X1( &intadd_22_SUM_3_, &intadd_23_B_1_); int n5643; INV_X1( &n5641, &n5643); int n5645; NAND2_X1( &n5641, &n5640, &n5645); int n5639; XNOR2_X1( &n5630, &n5629, &n5639); int n5621; INV_X1( &n5620, &n5621); int n5509; XNOR2_X1( &n5508, &n5507, &n5509); int n5443; INV_X1( &n5441, &n5443); int n5447; INV_X1( &n5439, &n5447); int n5619; XNOR2_X1( &n5412, &n5641, &n5619); int n5237; NAND2_X1( &n5236, &n2281, &n5237); int n5235; NOR2_X1( &n5232, &n2281, &n5235); int n5298; INV_X1( &n5437, &n5298); int n4912; INV_X1( &n4910, &n4912); int n5227; NOR2_X1( &n4844, &n4843, &n5227); int n4761; OAI22_X1( &n4760, &n5232, &n5231, &n2239, &n4761); int n4743, n4303; FA_X1( &intadd_20_SUM_2_, &intadd_22_SUM_0_, &n4679, &n4743, &n4303); int n4463; OAI21_X1( &n4911, &n4910, &n4945, &n4463); int n4464; NOR2_X1( &n4910, &n4944, &n4464); int n4225; AOI21_X1( &n4300, &n4299, &n1701, &n4225); int n4215; INV_X1( &n4303, &n4215); int n2055; NOR2_X2( &n2166, &n2201, &n2055); int n2299; INV_X1( &n2055, &n2299); int n2066; NOR2_X2( &n1953, &n4304, &n2066); int n5233; OAI21_X1( &intadd_23_SUM_0_, &n2103, &n5231, &n5233); int n1826; INV_X2( &n2066, &n1826); int n1825; INV_X1( &n4753, &n1825); int n2048; NOR2_X1( &n1825, &n2066, &n2048); int n4762; INV_X2( &n4753, &n4762); int n1732; OR2_X1( &n5298, &n5441, &n1732); int n5438; INV_X1( &n2180, &n5438); int n4226; NAND2_X1( &n2381, &n4225, &n4226); int n4763; NOR2_X1( &n5233, &n4761, &n4763); int n2023; NAND2_X1( &n1843, &n2180, &n2023); int n2168; AOI21_X1( &n4226, &n4227, &n2078, &n2168); int n4916; NAND2_X2( &n4215, &n4301, &n4916); int n3582; NAND2_X1( &n2102, &n2101, &n3582); int n2100; NOR2_X1( &n3582, &n3581, &n2100); int n4915; NAND2_X2( &n4302, &n4303, &n4915); int n5241; NAND2_X1( &n3581, &n3582, &n5241); int intadd_22_n2, intadd_22_SUM_4_; FA_X1( &intadd_22_A_4_, &intadd_22_B_4_, &intadd_22_n3, &intadd_22_n2, &intadd_22_SUM_4_); int intadd_23_n3, intadd_23_SUM_1_; FA_X1( &intadd_23_A_1_, &intadd_23_B_1_, &intadd_23_n4, &intadd_23_n3, &intadd_23_SUM_1_); int n5646; AOI22_X1( &n5645, &n5644, &n5643, &n5642, &n5646); int n5647; XOR2_X1( &n5639, &n5638, &n5647); int n5622; INV_X1( &n5619, &n5622); int n5511; XNOR2_X1( &n5510, &n5509, &n5511); int n5445; OAI21_X1( &n5442, &n5444, &n5443, &n5445); int n5448; NOR2_X1( &n5439, &n5438, &n5448); int n5578; XNOR2_X1( &n5620, &n5619, &n5578); int n5238; AOI21_X1( &n5233, &n5235, &n5234, &n5238); int n5228; INV_X1( &n5227, &n5228); int n4922; NAND2_X1( &n4916, &n4915, &n4922); int n4913; NAND2_X1( &n4912, &n4911, &n4913); int n4893; INV_X1( &intadd_23_SUM_1_, &n4893); int n4845; NOR2_X1( &n5229, &n5227, &n4845); int n4764; INV_X1( &n4763, &n4764); int n4754; INV_X1( &n4916, &n4754); int n4892, n4680; FA_X1( &intadd_20_SUM_3_, &n4744, &n4743, &n4892, &n4680); int n4681; INV_X1( &n4680, &n4681); int n4648; AOI21_X1( &n4463, &n4909, &n4464, &n4648); int n4900; NAND2_X2( &n2168, &n1766, &n4900); int n2155; NOR3_X1( &n4915, &n4763, &n1825, &n2155); int n2083; XOR2_X1( &n4846, &n4845, &n2083); int n5240; OR2_X2( &n2083, &n2084, &n5240); int n4755; AOI21_X2( &n2055, &n2227, &n4900, &n4755); int n2050; OAI21_X2( &n4915, &n4755, &n4754, &n2050); int n4305; OAI21_X4( &n1826, &n4762, &n4915, &n4305); int n2282; NOR2_X1( &n1826, &n4763, &n2282); int n1820; NAND2_X1( &n5238, &n5237, &n1820); int n1933; NAND2_X2( &n2084, &n2083, &n1933); int n5422; NAND2_X2( &n1933, &n1820, &n5422); int n2169; NAND2_X4( &n4753, &n4916, &n2169); int n1867; INV_X1( &n4648, &n1867); int n2245; INV_X1( &n1933, &n2245); int n4848; INV_X1( &n2100, &n4848); int n1739; AND2_X1( &n5240, &n5241, &n1739); int n1698; AND2_X1( &n2299, &n4900, &n1698); int n5432; OAI21_X1( &n5240, &n2245, &n5241, &n5432); int n2045; NOR2_X1( &n2048, &n2050, &n2045); int n5446; OAI21_X1( &n5228, &n5230, &n5229, &n5446); int n2156; INV_X1( &n5241, &n2156); int n2244; NAND2_X1( &n2245, &n5240, &n2244); int n5296; INV_X1( &n2023, &n5296); int n4921; INV_X2( &n4755, &n4921); int n5299; AOI21_X1( &n5446, &n5232, &n2180, &n5299); int n1866; NAND3_X1( &n4647, &n4644, &n1867, &n1866); int n4859; NAND2_X1( &n1866, &n1864, &n4859); int n4729; INV_X1( &n4859, &n4729); int n2154; NOR3_X1( &n2156, &n2155, &n2282, &n2154); int intadd_22_n1, intadd_22_SUM_5_; FA_X1( &intadd_22_A_5_, &intadd_22_B_5_, &intadd_22_n2, &intadd_22_n1, &intadd_22_SUM_5_); int intadd_23_n2, intadd_23_SUM_2_; FA_X1( &intadd_23_A_2_, &intadd_23_B_2_, &intadd_23_n3, &intadd_23_n2, &intadd_23_SUM_2_); int intadd_23_B_3_; INV_X1( &intadd_22_SUM_5_, &intadd_23_B_3_); int n5648; XOR2_X1( &n5647, &n5646, &n5648); int n5623; NOR2_X1( &n5622, &n5621, &n5623); int n5513; XNOR2_X1( &n5512, &n5511, &n5513); int n5449; NAND2_X1( &n5236, &n5448, &n5449); int n5450; AOI21_X1( &n5445, &n5447, &n5446, &n5450); int n5451; INV_X1( &n5448, &n5451); int n5414; INV_X1( &intadd_23_SUM_2_, &n5414); int n5297; AOI21_X1( &n5441, &n5296, &n5437, &n5297); int n5239; INV_X1( &n5422, &n5239); int n5149; XNOR2_X1( &n4914, &n4913, &n5149); int n5373, n4745; FA_X1( &intadd_20_SUM_4_, &intadd_22_SUM_2_, &n4892, &n5373, &n4745); int n4746; INV_X1( &n4745, &n4746); int n4856; NAND2_X1( &n4682, &n4681, &n4856); int n4854; NOR2_X1( &n4682, &n4681, &n4854); int n4538; AOI21_X1( &n4646, &n1867, &n4644, &n4538); int n4904; XNOR2_X1( &n4465, &n1867, &n4904); int n3583; NAND2_X1( &n5241, &n4848, &n3583); int n4918; NAND2_X2( &n4906, &n4900, &n4918); int n4306; INV_X2( &n2169, &n4306); int n2146; XOR2_X2( &n4903, &n1698, &n2146); int n5808; NOR2_X1( &n2033, &n5149, &n5808); int n5810; NAND2_X2( &n5149, &n2033, &n5810); int n4577; NAND2_X2( &n4904, &n4905, &n4577); int n4849; NAND2_X1( &n5240, &n1933, &n4849); int n5577; OAI211_X1( &n5450, &n5449, &n5451, &n2103, &n5577); int n1807; OR2_X1( &n5299, &n5298, &n1807); int n4756; NOR2_X1( &n4754, &n4918, &n4756); int n1806; NAND2_X1( &n1807, &n5297, &n1806); int n2153; NAND3_X1( &n4921, &n4306, &n4764, &n2153); int n2022; NAND2_X1( &n2023, &n5299, &n2022); int n4750; OAI21_X1( &n4856, &n4729, &n4854, &n4750); int n2124; NOR2_X2( &n2169, &n4918, &n2124); int n5243; XNOR2_X1( &n1732, &n2022, &n5243); int n2207; AOI21_X1( &n4918, &n4920, &n4919, &n2207); int n2280; NAND2_X1( &n2154, &n2153, &n2280); int n1669; INV_X1( &n4849, &n1669); int intadd_23_n1, intadd_23_SUM_3_; FA_X1( &intadd_23_A_3_, &intadd_23_B_3_, &intadd_23_n2, &intadd_23_n1, &intadd_23_SUM_3_); int n5811; INV_X1( &n5810, &n5811); int n5812; INV_X1( &n5808, &n5812); int n5649; XOR2_X1( &n5624, &n5623, &n5649); int n5579; INV_X1( &intadd_23_SUM_3_, &n5579); int n5530; XNOR2_X1( &n5514, &n5513, &n5530); int n5418; XOR2_X1( &intadd_23_SUM_3_, &n5578, &n5418); int n5401, n4894; FA_X1( &intadd_20_SUM_5_, &n5374, &n5373, &n5401, &n4894); int n5435; NOR2_X1( &n5243, &n5242, &n5435); int n5150; XOR2_X1( &n4905, &n4904, &n5150); int n5375; NOR2_X1( &n4894, &n4893, &n5375); int n4895; INV_X1( &n4894, &n4895); int n4855; NAND2_X1( &n4747, &n4746, &n4855); int n4857; NOR2_X1( &n4747, &n4746, &n4857); int n4683; INV_X1( &n4854, &n4683); int n4576; XNOR2_X1( &n4538, &n4537, &n4576); int n4923; NAND2_X2( &n4576, &n4577, &n4923); int n5433; NAND2_X2( &n5243, &n5242, &n5433); int n2228; AOI21_X4( &n4305, &n4306, &n4921, &n2228); int n2182; NAND2_X1( &n5433, &n5239, &n2182); int n2298; NOR2_X2( &n4577, &n4576, &n2298); int n4847; NAND3_X1( &n4848, &n2124, &n4908, &n4847); int n2049; NAND2_X2( &n4908, &n4756, &n2049); int n2034; NAND2_X4( &n4908, &n2124, &n2034); int n2021; AOI21_X1( &n2182, &n2228, &n2034, &n2021); int n1814; AOI21_X2( &n4921, &n2206, &n2207, &n1814); int n5152; XNOR2_X2( &n4922, &n1814, &n5152); int n5353; XNOR2_X1( &n5352, &n1806, &n5353); int n1794; AOI21_X2( &n3583, &n2034, &n2228, &n1794); int n1792; NAND3_X1( &n2228, &n3583, &n2034, &n1792); int n1783; NOR2_X1( &n2034, &n2100, &n1783); int n2139; AOI22_X2( &n2280, &n1669, &n1783, &n1669, &n2139); int n2278; INV_X1( &n2280, &n2278); int n2044; NOR2_X1( &n2034, &n5422, &n2044); int n2181; INV_X1( &n5435, &n2181); int n4924; INV_X1( &n2298, &n4924); int n2279; AND2_X1( &n4847, &n4849, &n2279); int n2046; INV_X1( &n2049, &n2046); int n1791; INV_X1( &n1794, &n1791); int n5813; NOR2_X2( &n2146, &n5150, &n5813); int n5814; NAND2_X1( &n5150, &n2146, &n5814); int n1789; NAND2_X1( &n5433, &n2244, &n1789); int n5816; INV_X1( &n5813, &n5816); int n5818; AOI21_X1( &n5811, &n5822, &n5812, &n5818); int n5809; NAND2_X1( &n5812, &n5810, &n5809); int n5650; XOR2_X1( &n5649, &n5648, &n5650); int n5531; XNOR2_X1( &n5530, &n5529, &n5531); int n5421; INV_X1( &n5433, &n5421); int n5662, n5415; FA_X1( &intadd_20_SUM_6_, &intadd_22_SUM_4_, &n5401, &n5662, &n5415); int n5376; XOR2_X1( &n5375, &n5414, &n5376); int n5819; OAI21_X2( &n5814, &n5813, &n5810, &n5819); int n4926; NAND2_X1( &n4924, &n4923, &n4926); int n5821; NOR2_X2( &n5813, &n5808, &n5821); int n5413; INV_X1( &n5375, &n5413); int n4858; OAI21_X1( &n4855, &n4857, &n4856, &n4858); int n4860; NOR2_X1( &n4857, &n4854, &n4860); int n4748; INV_X1( &n4857, &n4748); int n4684; NAND2_X1( &n4683, &n4856, &n4684); int n2394; XOR2_X1( &n5822, &n5809, &n2394); int n5431; NOR2_X1( &n2228, &n5422, &n5431); int n4758; OAI21_X2( &n4923, &n2297, &n2298, &n4758); int n2138; NAND2_X2( &n2279, &n2278, &n2138); int n2077; NAND2_X4( &n2138, &n2139, &n2077); int n2047; NAND2_X1( &n2045, &n2049, &n2047); int n5434; NAND2_X2( &n5353, &n5354, &n5434); int n1847; NOR2_X1( &n5354, &n5353, &n1847); int n2129; AOI21_X1( &n1847, &n5434, &n5435, &n2129); int n1809; OAI21_X2( &n2048, &n2046, &n2050, &n1809); int n2067; NAND2_X2( &n1809, &n2047, &n2067); int n2082; NAND2_X2( &n1792, &n1791, &n2082); int n2020; OAI21_X2( &n2181, &n1739, &n1789, &n2020); int n2003; NOR3_X4( &n5431, &n2044, &n5432, &n2003); int n5820; CLKBUF_X1( &n5819, &n5820); int n5815; CLKBUF_X1( &n5814, &n5815); int n1889; OR2_X1( &n5421, &n5435, &n1889); int n2038; INV_X1( &n4758, &n2038); int n2019; INV_X1( &n5434, &n2019); int nullval57; DFFS_X1( &n2394, rst_n, clk, &nullval57, &p_o[23]); int n5826; AOI21_X1( &n5820, &n5822, &n5821, &n5826); int n5817; NAND2_X1( &n5816, &n5815, &n5817); int n5664, n5402; FA_X1( &intadd_20_SUM_7_, &n5663, &n5662, &n5664, &n5402); int n5655; XOR2_X1( &intadd_24_n1, &n5650, &n5655); int n5533; XOR2_X1( &n5532, &n5531, &n5533); int n5436; NAND2_X1( &n5433, &n5434, &n5436); int n5416; OAI21_X1( &n5413, &n5415, &n5414, &n5416); int n5417; NAND2_X1( &n5414, &n5415, &n5417); int n5377; XNOR2_X1( &n5415, &n5376, &n5377); int n5151; XOR2_X1( &n4926, &n4925, &n5151); int n4896; OAI21_X1( &n5413, &intadd_23_SUM_1_, &n4895, &n4896); int n5386; AOI21_X1( &n4858, &n4860, &n4859, &n5386); int n4749; NAND2_X1( &n4748, &n4855, &n4749); int n4685; XNOR2_X1( &n4729, &n4684, &n4685); int n2359; OR2_X1( &n4686, &n4685, &n2359); int n2355; XNOR2_X1( &n5818, &n5817, &n2355); int n2063; OAI21_X1( &n2129, &n2003, &n5436, &n2063); int n2234; XNOR2_X2( &n2003, &n1889, &n2234); int n1888; NOR2_X2( &n2019, &n1847, &n1888); int n5403; XNOR2_X1( &n5402, &n5584, &n5403); int n1884; NOR2_X2( &n2021, &n2020, &n1884); int n5583; INV_X1( &n5402, &n5583); int nullval58; DFFS_X1( &n2355, rst_n, clk, &nullval58, &p_o[24]); int n5656; XNOR2_X1( &n5655, &n5654, &n5656); int n5588; NAND2_X1( &n5584, &n5583, &n5588); int n5535; XOR2_X1( &n5534, &n5533, &n5535); int n5580; NAND2_X1( &n5417, &n5416, &n5580); int n5586; OAI21_X1( &n5384, &n5386, &n5385, &n5586); int n5823; NAND2_X1( &n5152, &n5151, &n5823); int n5824; OR2_X2( &n5152, &n5151, &n5824); int n5356; INV_X1( &n5386, &n5356); int n4751; XOR2_X1( &n4750, &n4749, &n4751); int n4757; NAND2_X1( &n4686, &n4685, &n4757); int n5585; OR2_X1( &n5584, &n5583, &n5585); int n2068; NAND2_X2( &n5824, &n5821, &n2068); int n5430; XOR2_X2( &n1884, &n1888, &n5430); int n5825; NAND2_X1( &n5824, &n5823, &n5825); int n5658; XNOR2_X1( &n5657, &n5656, &n5658); int n5581; OAI21_X1( &n5578, &n5580, &n5579, &n5581); int n5582; INV_X1( &n5580, &n5582); int n5537; XNOR2_X1( &n5536, &n5535, &n5537); int n5419; XNOR2_X1( &n5418, &n5580, &n5419); int n5420; XNOR2_X1( &n5586, &n5403, &n5420); int n5372; AOI21_X1( &n5382, &n5356, &n2329, &n5372); int n5153; INV_X1( &n5823, &n5153); int n4897; XOR2_X1( &n5356, &n4888, &n4897); int n4759; NAND2_X1( &n2359, &n4757, &n4759); int n4850; NAND2_X1( &n2335, &n4751, &n4850); int n4853; OR2_X2( &n2335, &n4751, &n4853); int n4852; INV_X1( &n4757, &n4852); int n5587; NAND2_X1( &n5586, &n5585, &n5587); int n2393; XNOR2_X1( &n5826, &n5825, &n2393); int n2037; NAND2_X2( &n4853, &n2359, &n2037); int n5667; NAND2_X1( &n5420, &n5419, &n5667); int n2330; XNOR2_X1( &n5372, &n1890, &n2330); int n5425; NOR2_X2( &n2330, &n5377, &n5425); int n2151; AOI21_X1( &n4852, &n4758, &n2359, &n2151); int n2075; AOI21_X2( &n5153, &n5819, &n5824, &n2075); int nullval59; DFFS_X1( &n2393, rst_n, clk, &nullval59, &p_o[25]); int n5659; XOR2_X1( &intadd_22_n1, &n5658, &n5659); int n5590; OAI21_X1( &n5581, &n5582, &intadd_23_SUM_3_, &n5590); int n5574; XNOR2_X1( &n5538, &n5537, &n5574); int n5427; INV_X1( &n5425, &n5427); int n5668; NOR2_X1( &n5420, &n5419, &n5668); int n5426; NAND2_X1( &n2330, &n5377, &n5426); int n5423; NAND2_X1( &n4897, &n4896, &n5423); int n5424; NOR2_X1( &n4897, &n4896, &n5424); int n4851; INV_X1( &n4850, &n4851); int n5154; XOR2_X1( &n4759, &n4758, &n5154); int n4752; NAND2_X1( &n4853, &n4850, &n4752); int n5589; NAND2_X1( &n5588, &n5587, &n5589); int n5673; NOR2_X2( &n2067, &n5154, &n5673); int n2036; AOI21_X4( &n4851, &n4852, &n4853, &n2036); int n5379; OAI21_X4( &n2036, &n2037, &n2038, &n5379); int n2054; OAI21_X4( &n2075, &n2068, &n5807, &n2054); int n2017; INV_X1( &n5668, &n2017); int n5674; NAND2_X2( &n5154, &n2067, &n5674); int n2141; INV_X1( &n5674, &n2141); int n2069; INV_X1( &n5423, &n2069); int n5155; XNOR2_X1( &n4752, &n2151, &n5155); int n1883; NAND2_X1( &n5667, &n2017, &n1883); int n5829; INV_X1( &n2054, &n5829); int n2018; OAI21_X1( &n5426, &n5425, &n5423, &n2018); int n5675; OAI21_X1( &n5674, &n5829, &n5673, &n5675); int n5660; XOR2_X1( &intadd_23_n1, &n5659, &n5660); int n5666; XNOR2_X1( &n5590, &n5589, &n5666); int n5575; XNOR2_X1( &n5574, &n5573, &n5575); int n5428; NAND2_X1( &n5427, &n5426, &n5428); int n5378; NOR2_X1( &n5425, &n5424, &n5378); int n4898; INV_X1( &n5424, &n4898); int n2328; XOR2_X1( &n5661, &n5660, &n2328); int n2087; NOR2_X2( &n2082, &n5155, &n2087); int n2105; INV_X2( &n2087, &n2105); int n5827; INV_X1( &n5673, &n5827); int n5676; OR2_X2( &n5673, &n2087, &n5676); int n2035; AOI21_X2( &n2069, &n4898, &n5379, &n2035); int n5669; AOI21_X2( &n2018, &n5379, &n5378, &n5669); int n2140; AND2_X2( &n2082, &n5155, &n2140); int n1811; XNOR2_X1( &n5576, &n5575, &n1811); int n2130; XNOR2_X1( &n5577, &n1811, &n2130); int n2150; AOI21_X4( &n2140, &n2141, &n2105, &n2150); int n1882; XOR2_X2( &n2035, &n5428, &n1882); int n5429; XNOR2_X1( &n5669, &n1883, &n5429); int n5828; NAND2_X1( &n5827, &n5674, &n5828); int n5670; OAI21_X1( &n5667, &n5669, &n5668, &n5670); int n5665; XOR2_X1( &n2328, &n5664, &n5665); int n4899; NAND2_X1( &n4898, &n5423, &n4899); int n2354; XNOR2_X1( &n5829, &n5828, &n2354); int n5679; OAI21_X1( &n2150, &n5829, &n5676, &n5679); int n2076; XOR2_X2( &n5379, &n4899, &n2076); int n5677; NOR2_X4( &n2077, &n2076, &n5677); int n2065; INV_X1( &n2140, &n2065); int n2062; XNOR2_X1( &n2130, &n2063, &n2062); int n2060; NOR2_X2( &n5676, &n5677, &n2060); int n2319; AND2_X2( &n5429, &n5430, &n2319); int n1932; NOR2_X2( &n5430, &n5429, &n1932); int n1991; INV_X2( &n1882, &n1991); int n1763; AND2_X1( &n2065, &n2105, &n1763); int n2302; NOR2_X1( &n1932, &n2319, &n2302); int n2123; NAND2_X2( &n2076, &n2077, &n2123); int nullval60; DFFS_X1( &n2354, rst_n, clk, &nullval60, &p_o[26]); int n5678; INV_X1( &n5677, &n5678); int n5671; XNOR2_X1( &n5666, &n5665, &n5671); int n5830; NOR2_X2( &n2234, &n1991, &n5830); int n2058; OR2_X2( &n1932, &n5830, &n2058); int n5831; NAND2_X2( &n1991, &n2234, &n5831); int n2057; NOR2_X2( &n1932, &n5831, &n2057); int n1574; XNOR2_X1( &n1763, &n5675, &n1574); int n2059; OAI21_X4( &n2123, &n2150, &n5677, &n2059); int n1761; AND2_X1( &n2123, &n5678, &n1761); int nullval61; DFFS_X1( &n1574, rst_n, clk, &nullval61, &p_o[27]); int n5832; INV_X1( &n5830, &n5832); int n5672; XNOR2_X1( &n5671, &n5670, &n5672); int n2061; XOR2_X1( &n2062, &n5672, &n2061); int n2056; NOR2_X2( &n2057, &n2319, &n2056); int n5834; AOI21_X4( &n2059, &n2054, &n2060, &n5834); int n1573; XNOR2_X1( &n1761, &n5679, &n1573); int n1790; OAI21_X2( &n2056, &n5834, &n2058, &n1790); int n1570; XNOR2_X1( &n1790, &n2061, &n1570); int nullval62; DFFS_X1( &n1570, rst_n, clk, &nullval62, &p_o[31]); int nullval63; DFFS_X1( &n1573, rst_n, clk, &nullval63, &p_o[28]); int n5833; NAND2_X1( &n5832, &n5831, &n5833); int n2301; OAI21_X2( &n5831, &n5834, &n5830, &n2301); int n1571; XNOR2_X1( &n2301, &n2302, &n1571); int n1767; XNOR2_X1( &n5834, &n5833, &n1767); int nullval64; DFFS_X1( &n1571, rst_n, clk, &nullval64, &p_o[30]); int nullval65; DFFS_X1( &n1767, rst_n, clk, &nullval65, &p_o[29]); } #define size 32 #define outsize 32 static void decimaltobinary(int n, int binary[size]){ int c, d; for (c = 0 ; c < size ; c++){ d = n >> c; if (d & 1){binary[c]=1;} else {binary[c]=0;} } } static unsigned int binarytodecimal(int binary[outsize]){ unsigned int c, d; unsigned int result=0; for (c = 0 ; c < outsize ; c++){ d = 1 << c; result = result + d*binary[c]; } return result; } namespace ApproximateComputing { unsigned int Multipliers::multiplier32_32Exact(unsigned int a,unsigned int b){ int a_binary [size]; int b_binary [size]; int res_binary [outsize]; decimaltobinary(a,a_binary); decimaltobinary(b,b_binary); int clk=0; int rst_n=0; multiplier32_32_accurate_top(&clk,&rst_n,a_binary,b_binary,res_binary); unsigned int r=binarytodecimal(res_binary); #if defined ( LogAccurateMultiplier32 ) char log[ 1024 ]; LoggingHandler* logger = LoggerFactory::buildLogger( "/home/iraklis/Desktop/Multiplier32.log" ); snprintf( log, 1024, "in a: %u in b: %u, res: %u\n", a, b, r ); logger->log(log ); delete logger; #endif return r; } }
ebe645d0b9416c466620f81c606ac04fdba82194
14423056566a23158de403b2eb8e7befe86a4739
/GameServer/src/Object/Creature.h
5d7e6101e5a71798522c9d20c8fec4c222160104
[]
no_license
Aincent/ChatShow
9d9024e5a7924974fa4270a9c23ab8730fa04d33
c1e922132105f80ed552fcfb4baa9404e6fcbdfc
refs/heads/master
2021-01-21T08:51:45.712035
2017-10-17T12:20:20
2017-10-17T12:20:20
91,642,947
2
1
null
null
null
null
UTF-8
C++
false
false
1,259
h
Creature.h
/* * Creature.h * * Created on: Jun 27, 2017 * Author: root */ #ifndef CREATURE_H_ #define CREATURE_H_ #include "Object.h" #include "define.h" #include "Smart_Ptr.h" #include "EventSet/EventSet.h" #include "StateMgr.h" using namespace std; using namespace CommBaseOut; //-------------------------------------------------------------------------- // 角色状态标识 -- 该状态改变,需要向周围玩家广播 //-------------------------------------------------------------------------- enum ECreatureState { }; class CreatureObj : public Object, public EventSet { public: CreatureObj(eObjType type); virtual ~CreatureObj(); void Release(); int64 GetID() { return m_ID; } void SetID(int64 id) { m_ID = id; } string &GetName() { return m_name; } void SetName(const string &name) { m_name = name; } public: typedef State<DWORD64, ECreatureState> CreatureState; private: //------------------------------------------------------------------------------------- // 玩家当前状态 //------------------------------------------------------------------------------------- CreatureState m_CreatureState; // 玩家状态 -- 变化后,需通知周围玩家 int64 m_ID; string m_name; }; #endif /* CREATURE_H_ */
74c1ceada80d61675c6e7baf45497d16841a7621
51635684d03e47ebad12b8872ff469b83f36aa52
/kernel/sys/process.cpp
a849bdfcb524f779183f72eb29a4d6d88a704d65
[ "Zlib", "LicenseRef-scancode-public-domain" ]
permissive
zhmu/ananas
8fb48ddfe3582f85ff39184fc7a3c58725fe731a
30850c1639f03bccbfb2f2b03361792cc8fae52e
refs/heads/master
2022-06-25T10:44:46.256604
2022-06-12T17:04:40
2022-06-12T17:04:40
30,108,381
59
8
Zlib
2021-09-26T17:30:30
2015-01-31T09:44:33
C
UTF-8
C++
false
false
1,065
cpp
process.cpp
/*- * SPDX-License-Identifier: Zlib * * Copyright (c) 2009-2018 Rink Springer <rink@rink.nu> * For conditions of distribution and use, see LICENSE file */ #include "kernel/types.h" #include <ananas/errno.h> #include "kernel/result.h" #include "kernel/process.h" #include "syscall.h" Result sys_getpid() { auto& proc = process::GetCurrent(); const auto pid = proc.p_pid; return Result::Success(pid); } Result sys_getppid() { auto& proc = process::GetCurrent(); const auto ppid = proc.p_pid; return Result::Success(ppid); } Result sys_getuid() { auto uid = 0; // TODO return Result::Success(uid); } Result sys_geteuid() { auto euid = 0; // TODO return Result::Success(euid); } Result sys_getgid() { auto gid = 0; // TODO return Result::Success(gid); } Result sys_getegid() { auto egid = 0; // TODO return Result::Success(egid); } Result sys_setreuid(uid_t ruid, uid_t euid) { return Result::Failure(EPERM); } Result sys_setregid(gid_t rgid, gid_t egid) { return Result::Failure(EPERM); }
936336f5657d0f21da2a8b597b7d2eff285763ae
548b41e86a003a9cfe21f717bf7afaa1af37a3bd
/src/nmea2000/src/test.cpp
1528ef4272e5a21ee47c9d602af05eef10756f8e
[]
no_license
FeynH/nav_usv
e12d47b0cc3e9bb33b4db1596a5fa6fc3b4a893a
2ce94b280a703020c94645322615344984634efb
refs/heads/master
2022-04-08T10:33:12.736008
2020-02-08T11:06:48
2020-02-08T11:06:48
235,026,642
1
0
null
null
null
null
UTF-8
C++
false
false
2,236
cpp
test.cpp
#include <nmea2000/myfilter.hpp> #include <nmea2000/geo_pos_conv.hpp> #include <iostream> #include <sstream> #include <fstream> #include <string> #include <vector> #include <ros/ros.h> using namespace std; geo_pos_conv _testgeo; double GeshiChange(double Dufen) { int du=int(Dufen/100); double fen=fmod(Dufen,100)/60.0; double gpsData=double(du)+fen; return gpsData; } vector<double> split(const std::string &string) { std::vector<std::string> str_vec_ptr; std::string token; std::stringstream ss(string); while (getline(ss, token, ',')) str_vec_ptr.push_back(token); vector<double> LatAndLon; LatAndLon.push_back(GeshiChange(stod(str_vec_ptr.at(2)))); LatAndLon.push_back(GeshiChange(stod(str_vec_ptr.at(4)))); LatAndLon.push_back(stod(str_vec_ptr.at(1))); return LatAndLon; } //读取GPS数据 vector< vector<double> > getGPS(string path) { ifstream originalData(path); vector< vector<double> > ParseData; if(originalData.is_open()) { string line; while(getline(originalData,line)){ ParseData.push_back(split(line)); } { originalData.close(); } } return ParseData; } int main(int argc, char** argv){ ros::init(argc, argv, "testGPS"); double last_timestamp=0.0, now_timestamp=0.0; lpf mylpf(20.0); _testgeo.set_plane(34.2194186,108.9982604); vector< vector<double> > Data_GPS=getGPS("/home/ubuntu/Documents/test.txt"); ofstream out("/home/ubuntu/Documents/out.txt"); int size=Data_GPS.size(); int i=0; while(i<size){//获取传感器数据 //initialize kalman filter //double input[3]; // input[0]=Data_GPS[i][2]; // input[1]=Data_GPS[i][0]; // input[2]=Data_GPS[i][1]; mylpf.filter(Data_GPS[i][2],Data_GPS[i][0],Data_GPS[i][1]); _testgeo.set_llh_nmea_degrees(mylpf.getX(),mylpf.getY(),0); cout.precision(7); cout.setf(ios::fixed); out.precision(7); out.setf(ios::fixed); out<<_testgeo.x()<<","<<_testgeo.y()<<"\n"; cout<<"LPF output x: "<<_testgeo.x()<<" "<< "y: "<<_testgeo.y()<<endl; i++; } out.close(); ros::spin(); return 0; }
7f53e984d6123bdde9a54186910b7b0663fe70ac
3671c4da252437ad4db6c95aef9e62133c752aad
/Projects/pmvankerRpiTest/src/gpio.cpp
cb7a5dd1317b1c710bfd96d6e078fd971d8bf936
[]
no_license
pmvanker/pmvankerPI
09f9fbd65313186f155142a48b0671142de6e5d2
d6612370ea94a673c75ed9d47e39335073ea01d7
refs/heads/master
2021-07-17T06:17:57.708776
2020-05-13T10:34:30
2020-05-13T10:34:30
144,412,313
0
0
null
null
null
null
UTF-8
C++
false
false
3,265
cpp
gpio.cpp
/* * gpio.cpp * * Created on: 13-May-2020 * Author: pmvanker */ #include "gpio.h" list<unsigned char> gpio_list = {2,3,4,14,15,17,18,27,22,23,24,10,9,25,11,8,7,0,1,5,6,12,13,19,16,26,20,21}; /** * @param path The sysfs path of the file to be modified * @param filename The file to be written to in that path * @param value The value to be written to the file * @return */ int write(string path, string filename, string value){ ofstream fs; fs.open((path + filename).c_str()); if (!fs.is_open()){ perror("GPIO: write failed to open file "); return -1; } fs << value; fs.close(); return 0; } /** * @param path The sysfs path of the file to be read * @param filename Filename The file to be written to in that path * @return */ string read(string path, string filename){ ifstream fs; fs.open((path + filename).c_str()); if (!fs.is_open()){ perror("GPIO: read failed to open file "); } string input; getline(fs,input); fs.close(); return input; } /** * Private write method that writes a single int value to a file in the path provided * @param path The sysfs path of the file to be modified * @param filename The file to be written to in that path * @param value The int value to be written to the file * @return */ int write(string path, string filename, int value){ stringstream s; s << value; return write(path,filename,s.str()); } /** * The constructor will set up the states and export the pin. * @param number The GPIO number to be exported */ GPIO::GPIO(int number) { this->number = number; ostringstream s; s << "gpio" << number; this->name = string(s.str()); this->path = GPIO_PATH + this->name + "/"; this->exportGPIO(); // need to give Linux time to set up the sysfs structure usleep(250000); // 250ms delay } int GPIO::exportGPIO(){ return write(GPIO_PATH, "export", this->number); } int GPIO::unexportGPIO(){ return write(GPIO_PATH, "unexport", this->number); } int GPIO::setDirection(GPIO::DIRECTION dir){ switch(dir){ case INPUT: return write(this->path, "direction", "in"); break; case OUTPUT:return write(this->path, "direction", "out"); break; } return -1; } GPIO::VALUE GPIO::getValue(){ string input = read(this->path, "value"); if (input == "0") return LOW; else return HIGH; } GPIO::DIRECTION GPIO::getDirection(){ string input = read(this->path, "direction"); if (input == "in") return INPUT; else return OUTPUT; } int GPIO::streamOpen(){ stream.open((path + "value").c_str()); return 0; } int GPIO::streamWrite(GPIO::VALUE value){ stream << value << std::flush; return 0; } int GPIO::streamClose(){ stream.close(); return 0; } GPIO::~GPIO() { this->unexportGPIO(); } int GPIO::setValue(GPIO::VALUE value){ switch(value){ case HIGH: return write(this->path, "value", "1"); break; case LOW: return write(this->path, "value", "0"); break; } return -1; } int gpio_test(){ gpio_list.sort(); /* seting all gpio output mode with logic HIGH */ for(auto i : gpio_list){ GPIO obj(i); if(-1 == obj.setDirection(GPIO::DIRECTION::OUTPUT)){ return GPIO_DIRECTION_FAIL;} if(-1 == obj.setValue(GPIO::VALUE::HIGH)){ return GPIO_WRITE_FAIL;} } return 0; }
ba086cfc3ee19f91a3188fe68fbc9ce96024d9a8
a60e81b51935fb53c0900fecdadba55d86110afe
/tool/ImgSeg/ImgSeg/src/ImgCore.cpp
ebbd0c76ea90b15d6983bd2a774971b336d7078c
[]
no_license
FrankieZhen/Lookoop
fab6855f5660467f70dc5024d9aa38213ecf48a7
212f8b83d6ac22db1a777f980075d9e12ce521d2
refs/heads/master
2020-07-27T08:12:45.887814
2019-09-16T11:48:20
2019-09-16T11:48:20
209,021,915
1
0
null
2019-09-17T10:10:46
2019-09-17T10:10:46
null
UTF-8
C++
false
false
8,256
cpp
ImgCore.cpp
// ImgCore.cc #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <iostream> #include <string> #include <vector> #include <deque> #include <cmath> #include "../include/ImgCore.hpp" #include "../include/FileTool.hpp" using namespace cv; using namespace std; /* 去噪 */ void move_noise(const Mat img_in, Mat &img_out, int kernel, int op, const int repeat) { // cout << "[INFO] call move_noise()" << endl; medianBlur(img_in, img_out, kernel); Mat element = getStructuringElement(MORPH_RECT, Size(kernel, kernel)); for (int it = 0; it != repeat; ++it) { morphologyEx(img_out, img_out, op, element); } } /* 获得直方图 */ void get_histogram(const Mat img, Mat &hist) { // cout << "[INFO] call get_histogram()" << endl; Mat _hist = Mat::zeros(Size(256, 1), CV_32FC1); for (int r = 0; r != img.rows; ++r) { // cout << "[INFO] read row: " << r << endl; for (int c = 0; c != img.cols; ++c) { // cout << img <<endl; // cout << "[INFO] value: " << img.at<uchar>(r, c) << endl; int index = img.at<uchar>(r, c); // cout << "[INFO] value: " << index << endl; _hist.at<float>(0, index) += 1; } } hist = _hist; } /* 通过softmax算法获得阈值 */ int get_threshed_value_by_softmax(const Mat &img, const Mat &weight) { Mat hist = Mat::zeros(Size(256, 1), CV_32FC1); get_histogram(img, hist); // 归一化, https://blog.csdn.net/cosmispower/article/details/64457406 normalize(hist, hist, 1, 0, NORM_MINMAX); Mat p = hist * weight; // p : 1 x m x m x n = 1 x n float max_val = -1; int max_index = -1; for (int i = 0; i != p.cols; ++i) { if (p.at<float>(0, i) > max_val) { max_val = p.at<float>(0, i); max_index = i; } } return max_index; } /* 保存图片 */ void save_image(const std::string &img_path, const Mat &img, const std::string &mid_name) { string basename = path_basename(img_path); vector<string> file = path_splitext(basename); string dir_path = path_dirpath(img_path); string img_name = file[0] + mid_name + file[1]; string output_path = path_join(dir_path, img_name); // cout << "[DEBUG] call save_image(): " << output_path << endl; imwrite(output_path, img); } /* 去除周围空白区域 */ void remove_margin(const Mat img, const Mat &threshed_img, Mat &output) { // cout << "[DEBUG] call remove_margin()" << endl; int row = img.rows, col = img.cols; // cout << "[DEBUG] row: " << row // << ", col: " << col // << endl; Rect rect = boundingRect(threshed_img); Point tl = rect.tl(), br = rect.br(); // cout << "[DEBUG] tl.x: " << tl.x // << ", tl.y: " << tl.y // << endl; // cout << "[DEBUG] br.x: " << br.x // << ", br.y: " << br.y // << endl; if (tl.x >= 10 && tl.y >= 10 && br.x < (col - 10) && br.y < (row - 10)) { tl.x -= 10; tl.y -= 10; br.x += 10; br.y += 10; } // cout << "[DEBUG] call remove_margin(): crop" << endl; // cout << "[DEBUG] tl.x: " << tl.x // << ", tl.y: " << tl.y // << endl; // cout << "[DEBUG] br.x: " << br.x // << ", br.y: " << br.y // << endl; output = img(Rect(tl, br)); } /* 归一化 */ void norm_to_size(const Mat img, Mat &output, int size) { // cout << "[DEBUG] call norm_to_size()" << endl; int row = img.rows, col = img.cols; int gap = abs(row - col); Mat tmp_out; if (row > col) { // 高大于宽则水平方向扩展 Mat fill = Mat::zeros(Size(gap/2, row), CV_8UC1); hconcat(fill, img, tmp_out); // cout << "[DEBUG] call norm_to_size(), after hconcat()" << endl; hconcat(tmp_out, fill, tmp_out); } else if (row < col) { // cout << "[DEBUG] call norm_to_size(), row < col" << endl; Mat fill = Mat::zeros(Size(col, gap/2), CV_8UC1); vconcat(fill, img, tmp_out); // cout << "[DEBUG] call norm_to_size(), after hconcat()" << endl; vconcat(tmp_out, fill, tmp_out); } // cout << "[DEBUG] call norm_to_size(), resize()" << endl; resize(tmp_out, output, Size(size, size), 0, 0, INTER_LINEAR); } /* 图像分割 */ /* 区域生长法 */ void Roi_region::apply(const Mat &src, const Mat &threshed_img, Mat &dst_src, Mat &dst_threshed) { // cout << "[DEBUG] call Roi_region::apply() "<< endl; int row = src.rows, col = src.cols; int mid_r = row / 2, mid_c = col /2; // 种子 vector<vector<bool>> visited(row, vector<bool>(col, false)); // cout << "[DEBUG] visited: " << visited[0][0] << endl; deque<vector<int>> dequeue; dequeue.push_back({mid_r, mid_c}); visited[mid_r][mid_c] = true; while (!dequeue.empty()) { long size = dequeue.size(); // cout << "[DEBUG] Roi_region::apply() while: "<< size << endl; while (size > 0) { vector<int> _tmp = dequeue.back(); dequeue.pop_back(); int r = _tmp[0], c = _tmp[1]; // up if (r > 0 && !visited[r - 1][c] && threshed_img.at<uchar>(r - 1, c) != 0) { dequeue.push_front({r - 1, c}); visited[r - 1][c] = true; } // right if (c < col - 1 && !visited[r][c + 1] && threshed_img.at<uchar>(r, c + 1) != 0) { dequeue.push_front({r, c + 1}); visited[r][c + 1] = true; } // down if (r < row - 1 && !visited[r + 1][c] && threshed_img.at<uchar>(r + 1, c) != 0) { dequeue.push_front({r + 1, c}); visited[r + 1][c] = true; } // left if (c > 0 && !visited[r][c - 1] && threshed_img.at<uchar>(r, c - 1) != 0) { dequeue.push_front({r, c - 1}); visited[r][c - 1] = true; } --size; } // cout << "[DEBUG] Roi_region::apply() after while: "<< size << endl; } // cout << "[DEBUG] Roi_region::apply() get results "<< endl; // cout << "[DEBUG] call Roi_region::apply(), row: " << row // << ", col:" << col << endl; dst_src = src.clone(); dst_threshed = threshed_img.clone(); // Mat bg = Mat::zeros(Size(col, row), CV_8UC1); for (int r = 0; r != row; ++r) { // cout << "[DEBUG] row: " << r << endl; for (int c = 0; c != col; ++c) { if (!visited[r][c]) { dst_src.at<uchar>(r, c) = 0; dst_threshed.at<uchar>(r, c) = 0; } } } // dst_src = dst_src.mul(bg); // dst_threshed = dst_threshed.mul(bg); return; } /* 最大连通区域 */ void Max_region::apply(const Mat &src, const Mat &threshed_img, Mat &dst_src, Mat &dst_threshed) { int row = src.rows, col = src.cols; long max_count = 0; vector<vector<bool>> max_visited; for (int _r = 0; _r != row; ++_r) { for (int _c = 0; _c != col; ++_c) { vector<vector<bool>> visited(row, vector<bool>(col, false)); deque<vector<int>> dequeue; dequeue.push_back({_r, _c}); long tmp_count = 0; visited[_r][_c] = true; while (!dequeue.empty()) { long size = dequeue.size(); while (size != 0) { vector<int> _tmp = dequeue.back(); dequeue.pop_back(); int r = _tmp[0], c = _tmp[1]; // up if (r > 0 && !visited[r - 1][c] && threshed_img.at<uchar>(r - 1, c) != 0) { dequeue.push_front({r - 1, c}); visited[r - 1][c] = true; ++tmp_count; } // right if (c < col - 1 && !visited[r][c + 1] && threshed_img.at<uchar>(r, c + 1) != 0) { dequeue.push_front({r, c + 1}); visited[r][c + 1] = true; ++tmp_count; } // down if (r < row - 1 && !visited[r + 1][c] && threshed_img.at<uchar>(r + 1, c) != 0) { dequeue.push_front({r + 1, c}); visited[r + 1][c] = true; ++tmp_count; } // left if (c > 0 && !visited[r][c - 1] && threshed_img.at<uchar>(r, c - 1) != 0) { dequeue.push_front({r, c - 1}); visited[r][c - 1] = true; ++tmp_count; } --size; } } if (tmp_count > max_count) { max_count = tmp_count; max_visited = visited; } } } dst_src = src.clone(); dst_threshed= threshed_img.clone(); for (int r = 0; r != row; ++r) { for (int c = 0; c != col; ++col) { if (!max_visited[r][c]) { dst_src.at<uchar>(r, c) = 0; dst_threshed.at<uchar>(r, c) = 0; } } } return; } /* 分割模型选择 */ void Seg::_choose_model(int model_name) { switch (model_name) { case 0 : _model = new Roi_region(); break; case 1 : _model = new Max_region(); break; } } void Seg::apply(const Mat &src, const Mat &threshed_img, Mat &dst_src, Mat &dst_threshed) { _model->apply(src, threshed_img, dst_src, dst_threshed); }
9919b2fd48f9ad9d80af9ad40699558fdba23892
973d723394437d646d0f27f6edd5c4860ee1fd63
/MFCAddition/MFCAddition/ConfirmDlg.h
679d611e99a3d4fa8ea49b048c9d087184adbddd
[]
no_license
333mhz/learncpp
a4ffcb4f8baf140974776713b319e76e70075f06
d2e875ff97b10d3a0c9da7f9aa0b6c389989cb9e
refs/heads/master
2020-06-25T00:36:04.656244
2020-01-19T00:21:12
2020-01-19T00:21:12
199,141,405
1
0
null
null
null
null
GB18030
C++
false
false
365
h
ConfirmDlg.h
#pragma once // ConfirmDlg 对话框 class ConfirmDlg : public CDialogEx { DECLARE_DYNAMIC(ConfirmDlg) public: ConfirmDlg(CWnd* pParent = NULL); // 标准构造函数 virtual ~ConfirmDlg(); // 对话框数据 enum { IDD = IDD_CONFIRM_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 DECLARE_MESSAGE_MAP() };
c808cf8e184dbe5c19a86a60967f7ddd12ce3b3e
7b6b612f150fd39d339eaad7155c3857a4f2142c
/swea/15686.cpp
219635e29c0dc31c0525db9eff22723bcc61bc67
[]
no_license
suev7245/acmicpc
8e8e68b60468a42058a9c78ed708226f9a09f532
69dc050a7c8fca273f274cfcc6a26d2bc9a502f3
refs/heads/master
2020-06-01T21:19:24.099893
2019-10-19T08:56:18
2019-10-19T08:56:18
190,930,695
0
0
null
null
null
null
UTF-8
C++
false
false
3,016
cpp
15686.cpp
/*치킨 배달 - 1:55 1. vector<int> perchicken[13]; array<> 대신 []로 보기 편하게! 2. dfs로 m개 조합 뽑기. void combi(int idx, int cnt){ if(cnt==m){ //처리하기. return; } for(int i=idx; i<chinum; i++){ //selected에 선택된 애들 추가 selected.push_back(i); comb(i + 1, cnt + 1); selected.pop_back(); } } combi(0,0); 3. #include <cmath> --> abs() 4. n,m와 같은 경우 전역변수로 둘 경우 지역변수와 섞지 않도록 변수명을 확실히 하자! 5. selected와 같은 경우 컴파일 에러 발생! 예약어 사용하지 않도록 하자. . 나는 전부 계산한 배열(전처리)을 가지고 계산했지만. 사실, 이 문제의 경우 map을 다 받을 필요 없이 그냥 house좌표 chicken좌표 가지고 있고 뽑은 chicken 조합 마다 각 house와의 차이를 계산해서 total내면 된다. */ #include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; int n,m, chinum, housenum, result; int map[50][50]; //0-index vector< pair<int,int> > wherechicken; vector< pair<int,int> > wherehouse; vector<int> perchicken[13]; // i번째 치킨집과 j번째 집과의 치킨거리. vector<int> selected; //조합으로 뽑은 치킨집들 - 매번 combi에서 갱신됨. int calpart(){ //각 집의 해당 치킨집들 중에서 최소값 찾아서 mini, --> 모든 집의 mini들의 합인 total 계산 int mini, total; total=0; for(int i=0; i<housenum; i++){ mini = n<<2; for(int j=0;j<selected.size(); j++){ mini = min(mini, perchicken[selected[j]][i]); } total += mini; } return total; } //m개 뽑기 void combi(int idx, int cnt){ if(cnt==m){ result = min(result, calpart()); return; } for(int i=idx; i<chinum; i++){ selected.push_back(i); combi(i+1, cnt+1); selected.pop_back(); } } int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin>>map[i][j]; if(map[i][j]==1){ wherehouse.push_back(make_pair(i,j)); housenum++; }else if(map[i][j]==2) { wherechicken.push_back(make_pair(i,j)); chinum++; } } } //치킨집 하나 당 각 집과의 치킨거리를 계산한다. for(int i=0; i<wherechicken.size(); i++){ for(int j=0; j<wherehouse.size(); j++){ perchicken[i].push_back(abs(wherechicken[i].first - wherehouse[j].first) + abs(wherechicken[i].second - wherehouse[j].second)); } } // cout<<"\n"; // for(int i=0; i<chinum; i++){ // for(int j=0; j<perchicken[i].size(); j++){ // cout<<perchicken[i][j]<<", "; // }cout<<"\n"; // } //빼는 치킨집 구하기 (m개 뽑기) result = 1e9; combi(0,0); cout<<result; }
a0d6d82b3839535e637dfa4ff175d103692e12b0
d4162fb94b7cde0482b115630a6d6cff00a79736
/GUI/mainwindow.cc
43de94f44e2a0e3b83eaa40963ee67a7b967086e
[]
no_license
shikevin/straights
e1e0b9ebbc87af659d926b30cb21e53b239db032
ba01b92508183fb1c17ae08515c5d0ac5cc865dd
refs/heads/master
2021-01-18T13:14:45.160653
2015-07-20T03:56:26
2015-07-20T03:56:26
37,504,470
0
0
null
null
null
null
UTF-8
C++
false
false
5,562
cc
mainwindow.cc
#include "mainwindow.h" #include <iostream> #include <gtkmm/box.h> #include "Card.h" #include <gtkmm/table.h> #include "validate.h" using namespace std; MainWindow::MainWindow() { tableView = new TableView(&deck); handView = new PlayerHandView(&deck); headerView = new HeaderView(); scoreView = new ScoreBoardView(); gameLogic = NULL; // Sets the border width of the window. set_border_width( 25 ); // Set the look of the frame. frame.set_label_align( Gtk::ALIGN_LEFT, Gtk::ALIGN_TOP ); frame.set_shadow_type( Gtk::SHADOW_ETCHED_OUT ); // Add the frame to the window. Windows can only hold one widget, same for frames. add( frame ); mainBox.pack_start(*headerView->getHeaderView()); mainBox.pack_start(*tableView->getViewBox()); mainBox.pack_start(*scoreView->getScoreBox()); mainBox.pack_start(*handView->getViewBox()); components.push_back(dynamic_cast<ViewComponent*>(tableView)); components.push_back(dynamic_cast<ViewComponent*>(scoreView)); components.push_back(dynamic_cast<ViewComponent*>(handView)); // Add the horizontal box for laying out the images to the frame. frame.add(mainBox); // The final step is to display this newly created widget. show_all(); // THIS SHOULD WORK BUT IS SEGFAULTING // for (int i = 0; i < components.size(); i++) { // components[i]->setMainWindow(this); // } tableView->setMainWindow(this); handView->setMainWindow(this); headerView->setMainWindow(this); scoreView->setMainWindow(this); } MainWindow::~MainWindow() { delete tableView; delete handView; delete headerView; } void MainWindow::startGame(int seed) { string choices = invitePlayers(); if (gameLogic == NULL) { gameLogic = new TableController(components, this); } gameLogic->playGame(seed, choices); } string MainWindow::invitePlayers() { string choices = ""; for (int i = 0; i < 4; i++) { string title = "Choose Type: Player " + to_string(i + 1); char type; do { PlayerSelectionDialog selection(*this, title); type = selection.getChoice(); } while (type == 'n'); choices += type; } return choices; } void MainWindow::playerCommand(Command command) { try { gameLogic->playerCommand(command); } catch (Validate::PlayerQuitException &e) { // handle quit } catch (Validate::LegalPlayExistsException &e) { // tell user to use the right card displayDialog(); return; } catch (Validate::IllegalPlayException &e) { command.type = DISCARD; playerCommand(command); } catch (Validate::PrintDeckException &e) { } } void MainWindow::displayDialog() { generateDialog("ILLEGAL PLAY", "Legal Play Exists.\n\nAnd its not that one.",250,300); } void MainWindow::setGameState(GameState* a){ gamestate = a; } void MainWindow::setScoreboard(Scoreboard* a){ scoreboard = a; } void MainWindow::gameOver() { //information->printWinner(scoreboard->getLowestID()); vector<int> winners = scoreboard->getLowestID(); for(int i = 0; i < winners.size(); i++) { string message; if(winners.size() == 1) { message = "Player "+ to_string(winners[i] + 1) + " wins!"; } else { message = "Player "+ to_string(winners[i] + 1) + " is a winner!"; } generateDialog("GAME OVER!", message, 300,200); } } void MainWindow::roundOver() { //information->printPlayerResults(i, scoreboard->getOldScore(i), scoreboard->getCurrentScore(i), playersInGame[i]->getDiscardedCards()); vector<Player*> playersInGame = gamestate->getPlayersInGame(); int playerName; int numDiscards; vector<Card*> discards; int totalScore; int roundScore; string displayText= "\tROUND SUMMARY\n\n"; for(int i = 0; i < playersInGame.size(); i++) { playerName = i+1; numDiscards = playersInGame[i]->getNumDiscardedCards(); roundScore = scoreboard->getCurrentScore(i); totalScore = scoreboard->getOldScore(i) + roundScore; discards = playersInGame[i]->getDiscardedCards(); displayText += generateRoundOverMessage(playerName, numDiscards, discards, totalScore, roundScore); } generateRoundOverDialog(displayText); } void MainWindow::generateDialog(string title, string info, int width, int height) { Gtk::Dialog dialogBox(title, *this, true, true); dialogBox.set_default_size(width,height); Gtk::Label message(info); dialogBox.get_vbox()->add(message); dialogBox.add_button( Gtk::Stock::OK, Gtk::RESPONSE_OK); //dialogBox.add_button(Gtk::Stock::OK); dialogBox.show_all(); dialogBox.run(); } void MainWindow::generateRoundOverDialog(string displayText) { generateDialog("ROUND OVER!",displayText,400,400); } string MainWindow::generateRoundOverMessage(int playerName, int numDiscards, vector<Card*> discards, int totalScore, int roundScore) { string message = "\n\n"; message += "Player " + to_string(playerName) + ":\n"; message += "Round Score: " + to_string(roundScore) + "\n"; message += "Number of Discards: " + to_string(numDiscards) + "\n"; string discardedCards = getDiscardedCardsAsString(discards); message += "Cards Discarded: " + discardedCards + "\n\n"; message += "Total Score: " + to_string(totalScore); return message; } string MainWindow::getDiscardedCardsAsString(vector<Card*> discards) { string result = ""; for(int i = 0; i < discards.size(); i++) { stringstream cardString; cardString << *discards[i]; result += cardString.str() + " "; cout << result << endl; } return result; }
c2baf4a6a10e849f140e1257aafbbe48be570ebf
62788124d3c9c8cc956fe402844c86357f54f431
/Client/LibraryClient/User.hpp
6441c71528af639237d568eab0b1af4befb8ef6b
[]
no_license
farzink/TCP-Library-C-asio
8611e85d1d1748623751f2db0f159dc7824a7b6c
23a3ada27806861c1e26b9edb1ee32d8b134e286
refs/heads/master
2021-04-12T12:26:26.077021
2018-03-21T18:37:44
2018-03-21T18:37:44
126,224,009
0
0
null
null
null
null
UTF-8
C++
false
false
394
hpp
User.hpp
#ifndef USER_H #define USER_H #include <string> using namespace std; class User { public: User(int, string, string, string); int getId(); string getName(); string getAge(); string getEmail(); void setName(string name); void setAge(string age); void setEmail(string email); User() {}; ~User() {}; protected: private: int id; string name; string age; string email; }; #endif
22f0802128b934de36f07ae51dd7558f08f5e93a
b8462551e15ced9a83e771e0fee216e8018fc9ea
/Day167.cpp
3ff9f5d19d72b2673882323657a44a54dafed374
[]
no_license
Professor-Fabrizzio/Daily-Coding-Problem
1a87f4b1b2fb84ab2859e698a89667803c973268
62e6643459e711fc0c3963e765e567283378b9fe
refs/heads/master
2022-12-17T05:42:46.327650
2020-09-24T04:27:57
2020-09-24T04:27:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,076
cpp
Day167.cpp
/************************************************************************************************************************************** This problem was asked by Airbnb. Given a list of words, find all pairs of unique indices such that the concatenation of the two words is a palindrome. For example, given the list ["code", "edoc", "da", "d"], return [(0, 1), (1, 0), (2, 3)]. ***************************************************************************************************************************************/ #include <iostream> #include <vector> #include <set> using namespace std; #define MAX 256 class TrieNode{ public: vector<TrieNode*> children; vector<int> pos; int id; bool isLeaf; TrieNode(){ this->isLeaf = false; this->children = vector<TrieNode*>(MAX,NULL); } }; bool isPalindrome(string str,int start,int end){ while(start<end){ if(str[start]!=str[end]) return false; start++; end--; } return true; } void search(string word, set<pair<int,int>>& ret, TrieNode* root, int id){ for(int i=0;i<word.length();i++){ if(root->id>=0 && root->id!=id && isPalindrome(word,i,word.length()-1)) ret.insert({id,root->id}); if(!root->children[word[i]]) return; root = root->children[word[i]]; } for(auto i:root->pos){ if(i!=id) ret.insert({id,i}); } } void insert(TrieNode* root,string word, int id){ for(int i=word.length()-1;i>=0;i--){ if(!root->children[word[i]]) root->children[word[i]] = new TrieNode(); if(isPalindrome(word,0,i)) (root->pos).push_back(id); root = root->children[word[i]]; } root->id = id; (root->pos).push_back(id); root->isLeaf = true; } set<pair<int,int>> findPalinPairs(vector<string> words){ TrieNode* root = new TrieNode(); for(int i=0;i<words.size();i++) insert(root,words[i],i); set<pair<int,int>> ret; for(int i=0;i<words.size();i++) search(words[i],ret,root,i); return ret; } int main() { vector<string> words = {"code", "edoc", "da", "d"}; set<pair<int,int>> ans = findPalinPairs(words); for(auto i:ans){ cout<<i.first<<" "<<i.second<<endl; } return 0; }
6d72f4907aa7a968cb8108ae75271ab71d73ff50
7c6f81ca4765ec2fe5d193ba3826f4584405cf6c
/code/Qt/mympvplayer/global.cpp
b09594a52cdd81de04f673ede53470ce099b9280
[]
no_license
SunMoonStar2000/examples
a6dd6c630697b910081d01d103ec9a3cf9fe0a6b
5a5045b63df765923d35bace18ae0b1dcefa5136
refs/heads/master
2022-11-26T00:46:43.346542
2020-07-31T06:06:16
2020-07-31T06:06:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
264
cpp
global.cpp
#include "global.h" #include "preferences.h" #include <QApplication> #include <QDebug> Preferences * Global::pref = 0; using namespace Global; void Global::global_init() { pref = new Preferences(); } void Global::global_end() { delete pref; pref = 0; }
9d7b1e50a9a5320df53183a5a30f44e0ae637175
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-athena/include/aws/athena/model/QueryRuntimeStatisticsTimeline.h
2999d017349e67f0f1a78315b770f3e8829ce4f2
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
7,832
h
QueryRuntimeStatisticsTimeline.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/athena/Athena_EXPORTS.h> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Athena { namespace Model { /** * <p>Timeline statistics such as query queue time, planning time, execution time, * service processing time, and total execution time.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryRuntimeStatisticsTimeline">AWS * API Reference</a></p> */ class QueryRuntimeStatisticsTimeline { public: AWS_ATHENA_API QueryRuntimeStatisticsTimeline(); AWS_ATHENA_API QueryRuntimeStatisticsTimeline(Aws::Utils::Json::JsonView jsonValue); AWS_ATHENA_API QueryRuntimeStatisticsTimeline& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The number of milliseconds that the query was in your query queue waiting for * resources. Note that if transient errors occur, Athena might automatically add * the query back to the queue.</p> */ inline long long GetQueryQueueTimeInMillis() const{ return m_queryQueueTimeInMillis; } /** * <p>The number of milliseconds that the query was in your query queue waiting for * resources. Note that if transient errors occur, Athena might automatically add * the query back to the queue.</p> */ inline bool QueryQueueTimeInMillisHasBeenSet() const { return m_queryQueueTimeInMillisHasBeenSet; } /** * <p>The number of milliseconds that the query was in your query queue waiting for * resources. Note that if transient errors occur, Athena might automatically add * the query back to the queue.</p> */ inline void SetQueryQueueTimeInMillis(long long value) { m_queryQueueTimeInMillisHasBeenSet = true; m_queryQueueTimeInMillis = value; } /** * <p>The number of milliseconds that the query was in your query queue waiting for * resources. Note that if transient errors occur, Athena might automatically add * the query back to the queue.</p> */ inline QueryRuntimeStatisticsTimeline& WithQueryQueueTimeInMillis(long long value) { SetQueryQueueTimeInMillis(value); return *this;} /** * <p>The number of milliseconds that Athena took to plan the query processing * flow. This includes the time spent retrieving table partitions from the data * source. Note that because the query engine performs the query planning, query * planning time is a subset of engine processing time.</p> */ inline long long GetQueryPlanningTimeInMillis() const{ return m_queryPlanningTimeInMillis; } /** * <p>The number of milliseconds that Athena took to plan the query processing * flow. This includes the time spent retrieving table partitions from the data * source. Note that because the query engine performs the query planning, query * planning time is a subset of engine processing time.</p> */ inline bool QueryPlanningTimeInMillisHasBeenSet() const { return m_queryPlanningTimeInMillisHasBeenSet; } /** * <p>The number of milliseconds that Athena took to plan the query processing * flow. This includes the time spent retrieving table partitions from the data * source. Note that because the query engine performs the query planning, query * planning time is a subset of engine processing time.</p> */ inline void SetQueryPlanningTimeInMillis(long long value) { m_queryPlanningTimeInMillisHasBeenSet = true; m_queryPlanningTimeInMillis = value; } /** * <p>The number of milliseconds that Athena took to plan the query processing * flow. This includes the time spent retrieving table partitions from the data * source. Note that because the query engine performs the query planning, query * planning time is a subset of engine processing time.</p> */ inline QueryRuntimeStatisticsTimeline& WithQueryPlanningTimeInMillis(long long value) { SetQueryPlanningTimeInMillis(value); return *this;} /** * <p>The number of milliseconds that the query took to execute.</p> */ inline long long GetEngineExecutionTimeInMillis() const{ return m_engineExecutionTimeInMillis; } /** * <p>The number of milliseconds that the query took to execute.</p> */ inline bool EngineExecutionTimeInMillisHasBeenSet() const { return m_engineExecutionTimeInMillisHasBeenSet; } /** * <p>The number of milliseconds that the query took to execute.</p> */ inline void SetEngineExecutionTimeInMillis(long long value) { m_engineExecutionTimeInMillisHasBeenSet = true; m_engineExecutionTimeInMillis = value; } /** * <p>The number of milliseconds that the query took to execute.</p> */ inline QueryRuntimeStatisticsTimeline& WithEngineExecutionTimeInMillis(long long value) { SetEngineExecutionTimeInMillis(value); return *this;} /** * <p>The number of milliseconds that Athena took to finalize and publish the query * results after the query engine finished running the query.</p> */ inline long long GetServiceProcessingTimeInMillis() const{ return m_serviceProcessingTimeInMillis; } /** * <p>The number of milliseconds that Athena took to finalize and publish the query * results after the query engine finished running the query.</p> */ inline bool ServiceProcessingTimeInMillisHasBeenSet() const { return m_serviceProcessingTimeInMillisHasBeenSet; } /** * <p>The number of milliseconds that Athena took to finalize and publish the query * results after the query engine finished running the query.</p> */ inline void SetServiceProcessingTimeInMillis(long long value) { m_serviceProcessingTimeInMillisHasBeenSet = true; m_serviceProcessingTimeInMillis = value; } /** * <p>The number of milliseconds that Athena took to finalize and publish the query * results after the query engine finished running the query.</p> */ inline QueryRuntimeStatisticsTimeline& WithServiceProcessingTimeInMillis(long long value) { SetServiceProcessingTimeInMillis(value); return *this;} /** * <p>The number of milliseconds that Athena took to run the query.</p> */ inline long long GetTotalExecutionTimeInMillis() const{ return m_totalExecutionTimeInMillis; } /** * <p>The number of milliseconds that Athena took to run the query.</p> */ inline bool TotalExecutionTimeInMillisHasBeenSet() const { return m_totalExecutionTimeInMillisHasBeenSet; } /** * <p>The number of milliseconds that Athena took to run the query.</p> */ inline void SetTotalExecutionTimeInMillis(long long value) { m_totalExecutionTimeInMillisHasBeenSet = true; m_totalExecutionTimeInMillis = value; } /** * <p>The number of milliseconds that Athena took to run the query.</p> */ inline QueryRuntimeStatisticsTimeline& WithTotalExecutionTimeInMillis(long long value) { SetTotalExecutionTimeInMillis(value); return *this;} private: long long m_queryQueueTimeInMillis; bool m_queryQueueTimeInMillisHasBeenSet = false; long long m_queryPlanningTimeInMillis; bool m_queryPlanningTimeInMillisHasBeenSet = false; long long m_engineExecutionTimeInMillis; bool m_engineExecutionTimeInMillisHasBeenSet = false; long long m_serviceProcessingTimeInMillis; bool m_serviceProcessingTimeInMillisHasBeenSet = false; long long m_totalExecutionTimeInMillis; bool m_totalExecutionTimeInMillisHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws
10fd9a12bd991c99cf876d5298326c9e6ec6d55d
9291fb1161991259b8077f8f9a850867d5464770
/src/m68k/uae/cpuemu.cpp
85b6140db1e4fc44eb442367ea20e467d5833cd4
[]
no_license
goldmojo/uae4all
1d67266e1984810645281e07dc21021ad0441da2
9988f9924a5da4d21fde414b8d531301f8b1076c
refs/heads/master
2023-01-07T11:29:49.356720
2020-11-11T15:11:34
2020-11-11T15:11:34
255,284,950
7
2
null
2020-04-13T09:35:06
2020-04-13T09:35:05
null
UTF-8
C++
false
false
1,866,243
cpp
cpuemu.cpp
#include "sysconfig.h" #include "sysdeps.h" #include "config.h" #include "uae.h" #include "options.h" #include "memory.h" #include "custom.h" #include "m68k/m68k_intrf.h" #include "compiler.h" #include "cputbl.h" #define CPUFUNC(x) x##_ff #ifdef NOFLAGS #include "noflags.h" #endif #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8) #define PART_1 1 #define PART_2 1 #define PART_3 1 #define PART_4 1 #define PART_5 1 #define PART_6 1 #define PART_7 1 #define PART_8 1 #endif #ifdef PART_1 unsigned long REGPARAM2 CPUFUNC(op_0_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_10_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_18_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_20_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_28_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_30_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_38_0)(uae_u32 opcode) /* OR */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_39_0)(uae_u32 opcode) /* OR */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_3c_0)(uae_u32 opcode) /* ORSR */ { { MakeSR(); { uae_s16 src = get_iword(2); src &= 0xFF; uae_regs.sr |= src; MakeFromSR(); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_50_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_58_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_60_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_68_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_70_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_78_0)(uae_u32 opcode) /* OR */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_79_0)(uae_u32 opcode) /* OR */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_7c_0)(uae_u32 opcode) /* ORSR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel18; } { MakeSR(); { uae_s16 src = get_iword(2); uae_regs.sr |= src; MakeFromSR(); }}}m68k_incpc(4); endlabel18: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_80_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_98_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_a0_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_a8_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_b0_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 8704; } unsigned long REGPARAM2 CPUFUNC(op_b8_0)(uae_u32 opcode) /* OR */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_b9_0)(uae_u32 opcode) /* OR */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_ilong(6); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(10); return 9216; } unsigned long REGPARAM2 CPUFUNC(op_d0_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s8)get_byte(dsta); upper = (uae_s32)(uae_s8)get_byte(dsta+1); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s8)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel27; } } }}}m68k_incpc(4); endlabel27: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_e8_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s8)get_byte(dsta); upper = (uae_s32)(uae_s8)get_byte(dsta+1); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s8)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel28; } } }}}m68k_incpc(6); endlabel28: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f0_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s8)get_byte(dsta); upper = (uae_s32)(uae_s8)get_byte(dsta+1); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s8)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel29; } } }}}}endlabel29: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_f8_0)(uae_u32 opcode) /* CHK2 */ { { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s8)get_byte(dsta); upper = (uae_s32)(uae_s8)get_byte(dsta+1); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s8)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel30; } } }}}m68k_incpc(6); endlabel30: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f9_0)(uae_u32 opcode) /* CHK2 */ { { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s8)get_byte(dsta); upper = (uae_s32)(uae_s8)get_byte(dsta+1); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s8)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel31; } } }}}m68k_incpc(8); endlabel31: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_fa_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = 2; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s8)get_byte(dsta); upper = (uae_s32)(uae_s8)get_byte(dsta+1); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s8)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel32; } } }}}m68k_incpc(6); endlabel32: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_fb_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = 3; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s8)get_byte(dsta); upper = (uae_s32)(uae_s8)get_byte(dsta+1); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s8)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel33; } } }}}}endlabel33: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_100_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_108_0)(uae_u32 opcode) /* MVPMR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr memp = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_u16 val = (get_byte(memp) << 8) + get_byte(memp + 2); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_110_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_118_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_120_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_128_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_130_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_138_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_139_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_13a_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_13b_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_13c_0)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = get_ibyte(2); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_140_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_148_0)(uae_u32 opcode) /* MVPMR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr memp = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_u32 val = (get_byte(memp) << 24) + (get_byte(memp + 2) << 16) + (get_byte(memp + 4) << 8) + get_byte(memp + 6); _68k_dreg(dstreg) = (val); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_150_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_158_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_160_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_168_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_170_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_178_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_179_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_17a_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_17b_0)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_180_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_188_0)(uae_u32 opcode) /* MVPRM */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); uaecptr memp = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); put_byte(memp, src >> 8); put_byte(memp + 2, src); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_190_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_198_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1a0_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1a8_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1b0_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1b8_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1b9_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1ba_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1bb_0)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1c0_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_1c8_0)(uae_u32 opcode) /* MVPRM */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); uaecptr memp = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); put_byte(memp, src >> 24); put_byte(memp + 2, src >> 16); put_byte(memp + 4, src >> 8); put_byte(memp + 6, src); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1d0_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1d8_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1e0_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1e8_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1f0_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1f8_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1f9_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1fa_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1fb_0)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_200_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_210_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_218_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_220_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_228_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_230_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_238_0)(uae_u32 opcode) /* AND */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_239_0)(uae_u32 opcode) /* AND */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_23c_0)(uae_u32 opcode) /* ANDSR */ { { MakeSR(); { uae_s16 src = get_iword(2); src |= 0xFF00; uae_regs.sr &= src; MakeFromSR(); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_240_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_250_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_258_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_260_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_268_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_270_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_278_0)(uae_u32 opcode) /* AND */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_279_0)(uae_u32 opcode) /* AND */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_27c_0)(uae_u32 opcode) /* ANDSR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel96; } { MakeSR(); { uae_s16 src = get_iword(2); uae_regs.sr &= src; MakeFromSR(); }}}m68k_incpc(4); endlabel96: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_280_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_290_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_298_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2a0_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_2a8_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_2b0_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 8704; } unsigned long REGPARAM2 CPUFUNC(op_2b8_0)(uae_u32 opcode) /* AND */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_2b9_0)(uae_u32 opcode) /* AND */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_ilong(6); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(10); return 9216; } unsigned long REGPARAM2 CPUFUNC(op_2d0_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s16)get_word(dsta); upper = (uae_s32)(uae_s16)get_word(dsta+2); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s16)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel105; } } }}}m68k_incpc(4); endlabel105: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_2e8_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s16)get_word(dsta); upper = (uae_s32)(uae_s16)get_word(dsta+2); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s16)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel106; } } }}}m68k_incpc(6); endlabel106: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2f0_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s16)get_word(dsta); upper = (uae_s32)(uae_s16)get_word(dsta+2); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s16)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel107; } } }}}}endlabel107: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2f8_0)(uae_u32 opcode) /* CHK2 */ { { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s16)get_word(dsta); upper = (uae_s32)(uae_s16)get_word(dsta+2); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s16)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel108; } } }}}m68k_incpc(6); endlabel108: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2f9_0)(uae_u32 opcode) /* CHK2 */ { { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s16)get_word(dsta); upper = (uae_s32)(uae_s16)get_word(dsta+2); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s16)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel109; } } }}}m68k_incpc(8); endlabel109: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2fa_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = 2; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s16)get_word(dsta); upper = (uae_s32)(uae_s16)get_word(dsta+2); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s16)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel110; } } }}}m68k_incpc(6); endlabel110: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2fb_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = 3; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=(uae_s32)(uae_s16)get_word(dsta); upper = (uae_s32)(uae_s16)get_word(dsta+2); if ((extra & 0x8000) == 0) reg = (uae_s32)(uae_s16)reg; SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel111; } } }}}}endlabel111: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_400_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_410_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_418_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_420_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_428_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_430_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_438_0)(uae_u32 opcode) /* SUB */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_439_0)(uae_u32 opcode) /* SUB */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_440_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_450_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_458_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_460_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_468_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_470_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_478_0)(uae_u32 opcode) /* SUB */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_479_0)(uae_u32 opcode) /* SUB */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_480_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_490_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_498_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_4a0_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_4a8_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_4b0_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}}return 8704; } unsigned long REGPARAM2 CPUFUNC(op_4b8_0)(uae_u32 opcode) /* SUB */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_4b9_0)(uae_u32 opcode) /* SUB */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_ilong(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(10); return 9216; } unsigned long REGPARAM2 CPUFUNC(op_4d0_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=get_long(dsta); upper = get_long(dsta+4); SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel136; } } }}}m68k_incpc(4); endlabel136: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4e8_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=get_long(dsta); upper = get_long(dsta+4); SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel137; } } }}}m68k_incpc(6); endlabel137: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4f0_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = opcode & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=get_long(dsta); upper = get_long(dsta+4); SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel138; } } }}}}endlabel138: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4f8_0)(uae_u32 opcode) /* CHK2 */ { { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=get_long(dsta); upper = get_long(dsta+4); SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel139; } } }}}m68k_incpc(6); endlabel139: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4f9_0)(uae_u32 opcode) /* CHK2 */ { { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=get_long(dsta); upper = get_long(dsta+4); SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel140; } } }}}m68k_incpc(8); endlabel140: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4fa_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = 2; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=get_long(dsta); upper = get_long(dsta+4); SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel141; } } }}}m68k_incpc(6); endlabel141: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4fb_0)(uae_u32 opcode) /* CHK2 */ { uae_u32 dstreg = 3; { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); {uae_s32 upper,lower,reg = uae_regs.uae_regs[(extra >> 12) & 15]; lower=get_long(dsta); upper = get_long(dsta+4); SET_ZFLG (upper == reg || lower == reg); SET_CFLG (lower <= upper ? reg < lower || reg > upper : reg > upper || reg < lower); if ((extra & 0x800) && GET_CFLG) { Exception(6,oldpc); goto endlabel142; } } }}}}endlabel142: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_600_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_610_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_618_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_620_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_628_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_630_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_638_0)(uae_u32 opcode) /* ADD */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_639_0)(uae_u32 opcode) /* ADD */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_640_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_650_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_658_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_660_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_668_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_670_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_678_0)(uae_u32 opcode) /* ADD */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_679_0)(uae_u32 opcode) /* ADD */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_680_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_690_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_698_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_6a0_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_6a8_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_6b0_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}}return 8704; } unsigned long REGPARAM2 CPUFUNC(op_6b8_0)(uae_u32 opcode) /* ADD */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_6b9_0)(uae_u32 opcode) /* ADD */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_ilong(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(10); return 9216; } unsigned long REGPARAM2 CPUFUNC(op_6c0_0)(uae_u32 opcode) /* RTM */ { uae_u32 srcreg = (opcode & 7); {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6c8_0)(uae_u32 opcode) /* RTM */ { uae_u32 srcreg = (opcode & 7); {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6d0_0)(uae_u32 opcode) /* CALLM */ { uae_u32 srcreg = (opcode & 7); {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6e8_0)(uae_u32 opcode) /* CALLM */ { uae_u32 srcreg = (opcode & 7); {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6f0_0)(uae_u32 opcode) /* CALLM */ { uae_u32 srcreg = (opcode & 7); {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6f8_0)(uae_u32 opcode) /* CALLM */ { {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6f9_0)(uae_u32 opcode) /* CALLM */ { {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6fa_0)(uae_u32 opcode) /* CALLM */ { {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6fb_0)(uae_u32 opcode) /* CALLM */ { {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_800_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_810_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_818_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_820_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_828_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_830_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_838_0)(uae_u32 opcode) /* BTST */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_839_0)(uae_u32 opcode) /* BTST */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(8); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_83a_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_83b_0)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_83c_0)(uae_u32 opcode) /* BTST */ { {{ uae_s16 src = get_iword(2); { uae_s8 dst = get_ibyte(4); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_840_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_850_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_858_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_860_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_868_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_870_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_878_0)(uae_u32 opcode) /* BCHG */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_879_0)(uae_u32 opcode) /* BCHG */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_87a_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_87b_0)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_880_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_890_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_898_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8a0_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8a8_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8b0_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8b8_0)(uae_u32 opcode) /* BCLR */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8b9_0)(uae_u32 opcode) /* BCLR */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_8ba_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8bb_0)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8c0_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8d0_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8d8_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8e0_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8e8_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8f0_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8f8_0)(uae_u32 opcode) /* BSET */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8f9_0)(uae_u32 opcode) /* BSET */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_8fa_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8fb_0)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a00_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a10_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a18_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a20_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_a28_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a30_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a38_0)(uae_u32 opcode) /* EOR */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a39_0)(uae_u32 opcode) /* EOR */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_a3c_0)(uae_u32 opcode) /* EORSR */ { { MakeSR(); { uae_s16 src = get_iword(2); src &= 0xFF; uae_regs.sr ^= src; MakeFromSR(); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a40_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a50_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a58_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a60_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_a68_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a70_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a78_0)(uae_u32 opcode) /* EOR */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a79_0)(uae_u32 opcode) /* EOR */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } #endif #ifdef PART_2 unsigned long REGPARAM2 CPUFUNC(op_a7c_0)(uae_u32 opcode) /* EORSR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel234; } { MakeSR(); { uae_s16 src = get_iword(2); uae_regs.sr ^= src; MakeFromSR(); }}}m68k_incpc(4); endlabel234: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a80_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_a90_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_a98_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_aa0_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_aa8_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_ab0_0)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 8704; } unsigned long REGPARAM2 CPUFUNC(op_ab8_0)(uae_u32 opcode) /* EOR */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_ab9_0)(uae_u32 opcode) /* EOR */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_ilong(6); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(10); return 9216; } unsigned long REGPARAM2 CPUFUNC(op_ad0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(_68k_dreg(rc))); { int flgs = ((uae_s8)(_68k_dreg(rc))) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(_68k_dreg(rc))) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_byte(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_ad8_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(_68k_dreg(rc))); { int flgs = ((uae_s8)(_68k_dreg(rc))) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(_68k_dreg(rc))) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_byte(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_ae0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(_68k_dreg(rc))); { int flgs = ((uae_s8)(_68k_dreg(rc))) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(_68k_dreg(rc))) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_byte(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_ae8_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(_68k_dreg(rc))); { int flgs = ((uae_s8)(_68k_dreg(rc))) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(_68k_dreg(rc))) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_byte(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_af0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(_68k_dreg(rc))); { int flgs = ((uae_s8)(_68k_dreg(rc))) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(_68k_dreg(rc))) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_byte(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_af8_0)(uae_u32 opcode) /* CAS */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(_68k_dreg(rc))); { int flgs = ((uae_s8)(_68k_dreg(rc))) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(_68k_dreg(rc))) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_byte(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_af9_0)(uae_u32 opcode) /* CAS */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(_68k_dreg(rc))); { int flgs = ((uae_s8)(_68k_dreg(rc))) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(_68k_dreg(rc))) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_byte(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_c00_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c10_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c18_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c20_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c28_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c30_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c38_0)(uae_u32 opcode) /* CMP */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c39_0)(uae_u32 opcode) /* CMP */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_ilong(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c3a_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 2; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c3b_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c40_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c50_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c58_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c60_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c68_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c70_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c78_0)(uae_u32 opcode) /* CMP */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c79_0)(uae_u32 opcode) /* CMP */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c7a_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c7b_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c80_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c90_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c98_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_ca0_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_ca8_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_cb0_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_cb8_0)(uae_u32 opcode) /* CMP */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_cb9_0)(uae_u32 opcode) /* CMP */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_ilong(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(10); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_cba_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 2; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = m68k_getpc () + 6; dsta += (uae_s32)(uae_s16)get_iword(6); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_cbb_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_cd0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(_68k_dreg(rc))); { int flgs = ((uae_s16)(_68k_dreg(rc))) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(rc))) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_word(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_cd8_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(_68k_dreg(rc))); { int flgs = ((uae_s16)(_68k_dreg(rc))) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(rc))) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_word(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_ce0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(_68k_dreg(rc))); { int flgs = ((uae_s16)(_68k_dreg(rc))) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(rc))) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_word(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_ce8_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(_68k_dreg(rc))); { int flgs = ((uae_s16)(_68k_dreg(rc))) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(rc))) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_word(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_cf0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(_68k_dreg(rc))); { int flgs = ((uae_s16)(_68k_dreg(rc))) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(rc))) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_word(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_cf8_0)(uae_u32 opcode) /* CAS */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s16 dst = get_word(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(_68k_dreg(rc))); { int flgs = ((uae_s16)(_68k_dreg(rc))) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(rc))) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_word(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_cf9_0)(uae_u32 opcode) /* CAS */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s16 dst = get_word(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(_68k_dreg(rc))); { int flgs = ((uae_s16)(_68k_dreg(rc))) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(rc))) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_word(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_cfc_0)(uae_u32 opcode) /* CAS2 */ { {{ uae_s32 extra = get_ilong(2); uae_u32 rn1 = uae_regs.uae_regs[(extra >> 28) & 15]; uae_u32 rn2 = uae_regs.uae_regs[(extra >> 12) & 15]; uae_u16 dst1 = get_word(rn1), dst2 = get_word(rn2); {uae_u32 newv = ((uae_s16)(dst1)) - ((uae_s16)(_68k_dreg((extra >> 16) & 7))); { int flgs = ((uae_s16)(_68k_dreg((extra >> 16) & 7))) < 0; int flgo = ((uae_s16)(dst1)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg((extra >> 16) & 7))) > ((uae_u16)(dst1))); SET_NFLG (flgn != 0); if (GET_ZFLG) { {uae_u32 newv = ((uae_s16)(dst2)) - ((uae_s16)(_68k_dreg(extra & 7))); { int flgs = ((uae_s16)(_68k_dreg(extra & 7))) < 0; int flgo = ((uae_s16)(dst2)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(_68k_dreg(extra & 7))) > ((uae_u16)(dst2))); SET_NFLG (flgn != 0); if (GET_ZFLG) { put_word(rn1, _68k_dreg((extra >> 22) & 7)); put_word(rn1, _68k_dreg((extra >> 6) & 7)); }} }}}} if (! GET_ZFLG) { _68k_dreg((extra >> 22) & 7) = (_68k_dreg((extra >> 22) & 7) & ~0xffff) | (dst1 & 0xffff); _68k_dreg((extra >> 6) & 7) = (_68k_dreg((extra >> 6) & 7) & ~0xffff) | (dst2 & 0xffff); } }}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e10_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel288; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg); put_byte(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg); { uae_s8 src = get_byte(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s8)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xff) | ((src) & 0xff); } }}}}}}m68k_incpc(4); endlabel288: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e18_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel289; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; put_byte(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg); { uae_s8 src = get_byte(srca); _68k_areg(dstreg) += areg_byteinc[dstreg]; if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s8)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xff) | ((src) & 0xff); } }}}}}}m68k_incpc(4); endlabel289: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e20_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel290; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; put_byte(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 src = get_byte(srca); _68k_areg(dstreg) = srca; if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s8)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xff) | ((src) & 0xff); } }}}}}}m68k_incpc(4); endlabel290: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e28_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel291; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); put_byte(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s8 src = get_byte(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s8)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xff) | ((src) & 0xff); } }}}}}}m68k_incpc(8); endlabel291: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_e30_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel292; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); put_byte(dsta,src); }}}else{{{ uaecptr srca = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 src = get_byte(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s8)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xff) | ((src) & 0xff); } }}}}}}}endlabel292: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_e38_0)(uae_u32 opcode) /* MOVES */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel293; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); put_byte(dsta,src); }}else{{ uaecptr srca = (uae_s32)(uae_s16)get_iword(6); { uae_s8 src = get_byte(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s8)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xff) | ((src) & 0xff); } }}}}}}m68k_incpc(8); endlabel293: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_e39_0)(uae_u32 opcode) /* MOVES */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel294; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = get_ilong(4); put_byte(dsta,src); }}else{{ uaecptr srca = get_ilong(8); { uae_s8 src = get_byte(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s8)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xff) | ((src) & 0xff); } }}}}}}m68k_incpc(12); endlabel294: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_e50_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel295; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg); put_word(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg); { uae_s16 src = get_word(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s16)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xffff) | ((src) & 0xffff); } }}}}}}m68k_incpc(4); endlabel295: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e58_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel296; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; put_word(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg); { uae_s16 src = get_word(srca); _68k_areg(dstreg) += 2; if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s16)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xffff) | ((src) & 0xffff); } }}}}}}m68k_incpc(4); endlabel296: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e60_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel297; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; put_word(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(dstreg) = srca; if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s16)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xffff) | ((src) & 0xffff); } }}}}}}m68k_incpc(4); endlabel297: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e68_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel298; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); put_word(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s16 src = get_word(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s16)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xffff) | ((src) & 0xffff); } }}}}}}m68k_incpc(8); endlabel298: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_e70_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel299; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); put_word(dsta,src); }}}else{{{ uaecptr srca = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 src = get_word(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s16)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xffff) | ((src) & 0xffff); } }}}}}}}endlabel299: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_e78_0)(uae_u32 opcode) /* MOVES */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel300; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); put_word(dsta,src); }}else{{ uaecptr srca = (uae_s32)(uae_s16)get_iword(6); { uae_s16 src = get_word(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s16)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xffff) | ((src) & 0xffff); } }}}}}}m68k_incpc(8); endlabel300: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_e79_0)(uae_u32 opcode) /* MOVES */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel301; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = get_ilong(4); put_word(dsta,src); }}else{{ uaecptr srca = get_ilong(8); { uae_s16 src = get_word(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = (uae_s32)(uae_s16)src; } else { _68k_dreg((extra >> 12) & 7) = (_68k_dreg((extra >> 12) & 7) & ~0xffff) | ((src) & 0xffff); } }}}}}}m68k_incpc(12); endlabel301: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_e90_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel302; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg); put_long(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg); { uae_s32 src = get_long(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = src; } else { _68k_dreg((extra >> 12) & 7) = (src); } }}}}}}m68k_incpc(4); endlabel302: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_e98_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel303; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; put_long(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg); { uae_s32 src = get_long(srca); _68k_areg(dstreg) += 4; if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = src; } else { _68k_dreg((extra >> 12) & 7) = (src); } }}}}}}m68k_incpc(4); endlabel303: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_ea0_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel304; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; put_long(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(dstreg) = srca; if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = src; } else { _68k_dreg((extra >> 12) & 7) = (src); } }}}}}}m68k_incpc(4); endlabel304: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_ea8_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel305; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); put_long(dsta,src); }}else{{ uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); { uae_s32 src = get_long(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = src; } else { _68k_dreg((extra >> 12) & 7) = (src); } }}}}}}m68k_incpc(8); endlabel305: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_eb0_0)(uae_u32 opcode) /* MOVES */ { uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel306; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); put_long(dsta,src); }}}else{{{ uaecptr srca = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 src = get_long(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = src; } else { _68k_dreg((extra >> 12) & 7) = (src); } }}}}}}}endlabel306: ; return 9216; } unsigned long REGPARAM2 CPUFUNC(op_eb8_0)(uae_u32 opcode) /* MOVES */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel307; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); put_long(dsta,src); }}else{{ uaecptr srca = (uae_s32)(uae_s16)get_iword(6); { uae_s32 src = get_long(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = src; } else { _68k_dreg((extra >> 12) & 7) = (src); } }}}}}}m68k_incpc(8); endlabel307: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_eb9_0)(uae_u32 opcode) /* MOVES */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel308; } {{ uae_s16 extra = get_iword(2); if (extra & 0x800) { uae_u32 src = uae_regs.uae_regs[(extra >> 12) & 15]; { uaecptr dsta = get_ilong(4); put_long(dsta,src); }}else{{ uaecptr srca = get_ilong(8); { uae_s32 src = get_long(srca); if (extra & 0x8000) { _68k_areg((extra >> 12) & 7) = src; } else { _68k_dreg((extra >> 12) & 7) = (src); } }}}}}}m68k_incpc(12); endlabel308: ; return 10240; } unsigned long REGPARAM2 CPUFUNC(op_ed0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(_68k_dreg(rc))); { int flgs = ((uae_s32)(_68k_dreg(rc))) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(rc))) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_long(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_ed8_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(_68k_dreg(rc))); { int flgs = ((uae_s32)(_68k_dreg(rc))) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(rc))) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_long(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_ee0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(_68k_dreg(rc))); { int flgs = ((uae_s32)(_68k_dreg(rc))) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(rc))) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_long(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_ee8_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 dst = get_long(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(_68k_dreg(rc))); { int flgs = ((uae_s32)(_68k_dreg(rc))) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(rc))) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_long(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_ef0_0)(uae_u32 opcode) /* CAS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(_68k_dreg(rc))); { int flgs = ((uae_s32)(_68k_dreg(rc))) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(rc))) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_long(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}}return 7680; } unsigned long REGPARAM2 CPUFUNC(op_ef8_0)(uae_u32 opcode) /* CAS */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 dst = get_long(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(_68k_dreg(rc))); { int flgs = ((uae_s32)(_68k_dreg(rc))) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(rc))) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_long(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_ef9_0)(uae_u32 opcode) /* CAS */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 dst = get_long(dsta); { int ru = (src >> 6) & 7; int rc = src & 7; {uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(_68k_dreg(rc))); { int flgs = ((uae_s32)(_68k_dreg(rc))) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(rc))) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); if (GET_ZFLG){ put_long(dsta,(_68k_dreg(ru))); }else{_68k_dreg(rc) = dst; }}}}}}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_efc_0)(uae_u32 opcode) /* CAS2 */ { {{ uae_s32 extra = get_ilong(2); uae_u32 rn1 = uae_regs.uae_regs[(extra >> 28) & 15]; uae_u32 rn2 = uae_regs.uae_regs[(extra >> 12) & 15]; uae_u32 dst1 = get_long(rn1), dst2 = get_long(rn2); {uae_u32 newv = ((uae_s32)(dst1)) - ((uae_s32)(_68k_dreg((extra >> 16) & 7))); { int flgs = ((uae_s32)(_68k_dreg((extra >> 16) & 7))) < 0; int flgo = ((uae_s32)(dst1)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg((extra >> 16) & 7))) > ((uae_u32)(dst1))); SET_NFLG (flgn != 0); if (GET_ZFLG) { {uae_u32 newv = ((uae_s32)(dst2)) - ((uae_s32)(_68k_dreg(extra & 7))); { int flgs = ((uae_s32)(_68k_dreg(extra & 7))) < 0; int flgo = ((uae_s32)(dst2)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(_68k_dreg(extra & 7))) > ((uae_u32)(dst2))); SET_NFLG (flgn != 0); if (GET_ZFLG) { put_long(rn1, _68k_dreg((extra >> 22) & 7)); put_long(rn1, _68k_dreg((extra >> 6) & 7)); }} }}}} if (! GET_ZFLG) { _68k_dreg((extra >> 22) & 7) = dst1; _68k_dreg((extra >> 6) & 7) = dst2; } }}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1000_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_1010_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1018_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1020_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_1028_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1030_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1038_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1039_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_103a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_103b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_103c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1080_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1090_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1098_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10a0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_10a8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10b0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10b8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10b9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_10ba_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10bb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10bc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_10d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_10e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10f8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10f9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_10fa_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10fb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10fc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1100_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_1110_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1118_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1120_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1128_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1130_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1138_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1139_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_113a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_113b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_113c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1140_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1150_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1158_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1160_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1168_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1170_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_1178_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1179_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_117a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_117b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_117c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1180_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1190_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1198_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11a0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11a8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11b0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); {{ uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11b8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11b9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_11ba_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11bb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); {{ uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11bc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_11d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_11d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_11e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11f8_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11f9_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11fa_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11fb_0)(uae_u32 opcode) /* MOVE */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11fc_0)(uae_u32 opcode) /* MOVE */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_13c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_13d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_13d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_13e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_13e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_13f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(0); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_13f8_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_13f9_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(6); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(10); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_13fa_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_13fb_0)(uae_u32 opcode) /* MOVE */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(0); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_13fc_0)(uae_u32 opcode) /* MOVE */ { {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(8); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_2000_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2008_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2010_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2018_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2020_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2028_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2030_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2038_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2039_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_203a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_203b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_203c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2040_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2048_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2050_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2058_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2060_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2068_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2070_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2078_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2079_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_207a_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_207b_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_207c_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2080_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2088_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2090_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_2098_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20a0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_20a8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20b0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20b8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20b9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_20ba_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20bb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20bc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_20c8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_20d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_20e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20f8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20f9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_20fa_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20fb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20fc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_2100_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2108_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2110_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_2118_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_2120_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2128_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2130_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2138_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2139_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_213a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_213b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 7168; } unsigned long REGPARAM2 CPUFUNC(op_213c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_2140_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2148_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(4); return 4096; } #endif #ifdef PART_3 unsigned long REGPARAM2 CPUFUNC(op_2150_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2158_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2160_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2168_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2170_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}m68k_incpc(2); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_2178_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2179_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_217a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_217b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}m68k_incpc(2); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_217c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2180_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2188_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2190_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2198_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21a0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21a8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21b0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); {{ uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}}return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21b8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21b9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 8704; } unsigned long REGPARAM2 CPUFUNC(op_21ba_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21bb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); {{ uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}}return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21bc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_21c8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_21d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_21d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_21e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}m68k_incpc(2); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21f8_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21f9_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21fa_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21fb_0)(uae_u32 opcode) /* MOVE */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}m68k_incpc(2); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21fc_0)(uae_u32 opcode) /* MOVE */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_23c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_23c8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_23d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_23d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_23e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_23e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_23f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(0); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}m68k_incpc(4); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_23f8_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_23f9_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(6); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(10); return 9216; } unsigned long REGPARAM2 CPUFUNC(op_23fa_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_23fb_0)(uae_u32 opcode) /* MOVE */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(0); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}m68k_incpc(4); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_23fc_0)(uae_u32 opcode) /* MOVE */ { {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_ilong(6); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(10); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_3000_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3008_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3010_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3018_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3020_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3028_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3030_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3038_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3039_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_303a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_303b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_303c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3040_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3048_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3050_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3058_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3060_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3068_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3070_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3078_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3079_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_307a_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_307b_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_307c_0)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3080_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3088_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3090_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3098_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30a0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_30a8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30b0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30b8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30b9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_30ba_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30bb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30bc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_30c8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_30d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_30e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30f8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30f9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_30fa_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30fb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30fc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3100_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3108_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3110_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3118_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3120_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3128_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3130_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_3138_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3139_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_313a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_313b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_313c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3140_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3148_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3150_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3158_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3160_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3168_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_3170_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_3178_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_3179_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_317a_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_317b_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_317c_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3180_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3188_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3190_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3198_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31a0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31a8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31b0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); {{ uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31b8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31b9_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); {m68k_incpc(6); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_31ba_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31bb_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); {{ uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31bc_0)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_31c8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_31d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_31d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_31e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31f8_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31f9_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(6); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31fa_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31fb_0)(uae_u32 opcode) /* MOVE */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(0); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31fc_0)(uae_u32 opcode) /* MOVE */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_33c0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_33c8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_33d0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_33d8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_33e0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_33e8_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_33f0_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(0); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_33f8_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_33f9_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(6); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(10); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_33fa_0)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_33fb_0)(uae_u32 opcode) /* MOVE */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(0); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_33fc_0)(uae_u32 opcode) /* MOVE */ { {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(8); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4000_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((newv) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4010_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4018_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4020_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4028_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4030_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4038_0)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4039_0)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4040_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((newv) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4050_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4058_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4060_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4068_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4070_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4078_0)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4079_0)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4080_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(srcreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4090_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4098_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_40a0_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_40a8_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_40b0_0)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_40b8_0)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_40b9_0)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_40c0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel645; } {{ MakeSR(); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((uae_regs.sr) & 0xffff); }}}m68k_incpc(2); endlabel645: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_40d0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel646; } {{ uaecptr srca = _68k_areg(srcreg); MakeSR(); put_word(srca,uae_regs.sr); }}}m68k_incpc(2); endlabel646: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40d8_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel647; } {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += 2; MakeSR(); put_word(srca,uae_regs.sr); }}}m68k_incpc(2); endlabel647: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40e0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel648; } {{ uaecptr srca = _68k_areg(srcreg) - 2; _68k_areg(srcreg) = srca; MakeSR(); put_word(srca,uae_regs.sr); }}}m68k_incpc(2); endlabel648: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_40e8_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel649; } {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); MakeSR(); put_word(srca,uae_regs.sr); }}}m68k_incpc(4); endlabel649: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_40f0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel650; } {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); MakeSR(); put_word(srca,uae_regs.sr); }}}}endlabel650: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_40f8_0)(uae_u32 opcode) /* MVSR2 */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel651; } {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); MakeSR(); put_word(srca,uae_regs.sr); }}}m68k_incpc(4); endlabel651: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_40f9_0)(uae_u32 opcode) /* MVSR2 */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel652; } {{ uaecptr srca = get_ilong(2); MakeSR(); put_word(srca,uae_regs.sr); }}}m68k_incpc(6); endlabel652: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4100_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel653; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel653; } }}}m68k_incpc(2); endlabel653: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4110_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel654; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel654; } }}}}m68k_incpc(2); endlabel654: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4118_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel655; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel655; } }}}}m68k_incpc(2); endlabel655: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4120_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel656; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel656; } }}}}m68k_incpc(2); endlabel656: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4128_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel657; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel657; } }}}}m68k_incpc(4); endlabel657: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4130_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel658; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel658; } }}}}}endlabel658: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4138_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel659; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel659; } }}}}m68k_incpc(4); endlabel659: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4139_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel660; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel660; } }}}}m68k_incpc(6); endlabel660: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_413a_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel661; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel661; } }}}}m68k_incpc(4); endlabel661: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_413b_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel662; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel662; } }}}}}endlabel662: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_413c_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel663; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel663; } }}}m68k_incpc(6); endlabel663: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4180_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel664; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel664; } }}}m68k_incpc(2); endlabel664: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4190_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel665; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel665; } }}}}m68k_incpc(2); endlabel665: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4198_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel666; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel666; } }}}}m68k_incpc(2); endlabel666: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41a0_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel667; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel667; } }}}}m68k_incpc(2); endlabel667: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_41a8_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel668; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel668; } }}}}m68k_incpc(4); endlabel668: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41b0_0)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel669; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel669; } }}}}}endlabel669: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_41b8_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel670; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel670; } }}}}m68k_incpc(4); endlabel670: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41b9_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel671; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel671; } }}}}m68k_incpc(6); endlabel671: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_41ba_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel672; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel672; } }}}}m68k_incpc(4); endlabel672: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41bb_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel673; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel673; } }}}}}endlabel673: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_41bc_0)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel674; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel674; } }}}m68k_incpc(4); endlabel674: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41d0_0)(uae_u32 opcode) /* LEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_41e8_0)(uae_u32 opcode) /* LEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41f0_0)(uae_u32 opcode) /* LEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { _68k_areg(dstreg) = (srca); }}}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_41f8_0)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41f9_0)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41fa_0)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41fb_0)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { _68k_areg(dstreg) = (srca); }}}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4200_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((0) & 0xff); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4210_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4218_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4220_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4228_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4230_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4238_0)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4239_0)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4240_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((0) & 0xffff); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4250_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4258_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4260_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4268_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4270_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4278_0)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4279_0)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4280_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); _68k_dreg(srcreg) = (0); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4290_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}m68k_incpc(2); return 3072; } #endif #ifdef PART_4 unsigned long REGPARAM2 CPUFUNC(op_4298_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_42a0_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_42a8_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_42b0_0)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_42b8_0)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_42b9_0)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_42c0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ MakeSR(); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((uae_regs.sr & 0xff) & 0xffff); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_42d0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_42d8_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += 2; MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_42e0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; _68k_areg(srcreg) = srca; MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_42e8_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_42f0_0)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_42f8_0)(uae_u32 opcode) /* MVSR2 */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_42f9_0)(uae_u32 opcode) /* MVSR2 */ { {{ uaecptr srca = get_ilong(2); MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4400_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((dst) & 0xff); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4410_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4418_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4420_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4428_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4430_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4438_0)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4439_0)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4440_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((dst) & 0xffff); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4450_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4458_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4460_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4468_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4470_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4478_0)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4479_0)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4480_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(srcreg) = (dst); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4490_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4498_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_44a0_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_44a8_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_44b0_0)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_44b8_0)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_44b9_0)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_44c0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_44d0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_44d8_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_44e0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_44e8_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_44f0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_44f8_0)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_44f9_0)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_44fa_0)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_44fb_0)(uae_u32 opcode) /* MV2SR */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_44fc_0)(uae_u32 opcode) /* MV2SR */ { {{ uae_s16 src = get_iword(2); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4600_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((dst) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4610_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4618_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4620_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4628_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4630_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4638_0)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4639_0)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4640_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((dst) & 0xffff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4650_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4658_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4660_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4668_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4670_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4678_0)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4679_0)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4680_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4690_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4698_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_46a0_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_46a8_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_46b0_0)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_46b8_0)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_46b9_0)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_46c0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel773; } {{ uae_s16 src = _68k_dreg(srcreg); uae_regs.sr = src; MakeFromSR(); }}}m68k_incpc(2); endlabel773: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_46d0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel774; } {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(2); endlabel774: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_46d8_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel775; } {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(2); endlabel775: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_46e0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel776; } {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(2); endlabel776: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_46e8_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel777; } {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(4); endlabel777: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_46f0_0)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel778; } {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}endlabel778: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_46f8_0)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel779; } {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(4); endlabel779: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_46f9_0)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel780; } {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(6); endlabel780: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_46fa_0)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel781; } {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(4); endlabel781: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_46fb_0)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel782; } {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}endlabel782: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_46fc_0)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel783; } {{ uae_s16 src = get_iword(2); uae_regs.sr = src; MakeFromSR(); }}}m68k_incpc(4); endlabel783: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4800_0)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((newv) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4808_0)(uae_u32 opcode) /* LINK */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr olda = _68k_areg(7) - 4; _68k_areg(7) = olda; { uae_s32 src = _68k_areg(srcreg); put_long(olda,src); _68k_areg(srcreg) = (_68k_areg(7)); { uae_s32 offs = get_ilong(2); _68k_areg(7) += offs; }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_4810_0)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4818_0)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4820_0)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4828_0)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4830_0)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4838_0)(uae_u32 opcode) /* NBCD */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4839_0)(uae_u32 opcode) /* NBCD */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4840_0)(uae_u32 opcode) /* SWAP */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = ((src >> 16)&0xFFFF) | ((src&0xFFFF)<<16); CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4848_0)(uae_u32 opcode) /* BKPT */ { uae_u32 srcreg = (opcode & 7); {m68k_incpc(2); op_illg(opcode); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4850_0)(uae_u32 opcode) /* PEA */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4868_0)(uae_u32 opcode) /* PEA */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4870_0)(uae_u32 opcode) /* PEA */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4878_0)(uae_u32 opcode) /* PEA */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4879_0)(uae_u32 opcode) /* PEA */ { {{ uaecptr srca = get_ilong(2); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_487a_0)(uae_u32 opcode) /* PEA */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_487b_0)(uae_u32 opcode) /* PEA */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4880_0)(uae_u32 opcode) /* EXT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u16 dst = (uae_s16)(uae_s8)src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((dst) & 0xffff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4890_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = _68k_areg(dstreg); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_48a0_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = _68k_areg(dstreg) - 0; { uae_u16 amask = mask & 0xff, dmask = (mask >> 8) & 0xff; while (amask) { srca -= 2; put_word(srca, _68k_areg(movem_index2[amask])); amask = movem_next[amask]; } while (dmask) { srca -= 2; put_word(srca, _68k_dreg(movem_index2[dmask])); dmask = movem_next[dmask]; } _68k_areg(dstreg) = srca; }}}m68k_incpc(4); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_48a8_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48b0_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); {m68k_incpc(4); { uaecptr srca = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_48b8_0)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword(2); { uaecptr srca = (uae_s32)(uae_s16)get_iword(4); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48b9_0)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword(2); { uaecptr srca = get_ilong(4); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_48c0_0)(uae_u32 opcode) /* EXT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_48d0_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = _68k_areg(dstreg); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_48e0_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = _68k_areg(dstreg) - 0; { uae_u16 amask = mask & 0xff, dmask = (mask >> 8) & 0xff; while (amask) { srca -= 4; put_long(srca, _68k_areg(movem_index2[amask])); amask = movem_next[amask]; } while (dmask) { srca -= 4; put_long(srca, _68k_dreg(movem_index2[dmask])); dmask = movem_next[dmask]; } _68k_areg(dstreg) = srca; }}}m68k_incpc(4); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_48e8_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48f0_0)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); {m68k_incpc(4); { uaecptr srca = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_48f8_0)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword(2); { uaecptr srca = (uae_s32)(uae_s16)get_iword(4); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48f9_0)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword(2); { uaecptr srca = get_ilong(4); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_49c0_0)(uae_u32 opcode) /* EXT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = (uae_s32)(uae_s8)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a00_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a10_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a18_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a20_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4a28_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a30_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a38_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a39_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4a3a_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a3b_0)(uae_u32 opcode) /* TST */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a3c_0)(uae_u32 opcode) /* TST */ { {{ uae_s8 src = get_ibyte(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a40_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a48_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a50_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a58_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a60_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4a68_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a70_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a78_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a79_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4a7a_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a7b_0)(uae_u32 opcode) /* TST */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a7c_0)(uae_u32 opcode) /* TST */ { {{ uae_s16 src = get_iword(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a80_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a88_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a90_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a98_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4aa0_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4aa8_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4ab0_0)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4ab8_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4ab9_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4aba_0)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4abb_0)(uae_u32 opcode) /* TST */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4abc_0)(uae_u32 opcode) /* TST */ { {{ uae_s32 src = get_ilong(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4ac0_0)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((src) & 0xff); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4ad0_0)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4ad8_0)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4ae0_0)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4ae8_0)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4af0_0)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4af8_0)(uae_u32 opcode) /* TAS */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4af9_0)(uae_u32 opcode) /* TAS */ { {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c00_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); m68k_mull(opcode, dst, extra); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4c10_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); m68k_incpc(4); m68k_mull(opcode, dst, extra); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4c18_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; m68k_incpc(4); m68k_mull(opcode, dst, extra); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4c20_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; m68k_incpc(4); m68k_mull(opcode, dst, extra); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4c28_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 dst = get_long(dsta); m68k_incpc(6); m68k_mull(opcode, dst, extra); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c30_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); m68k_mull(opcode, dst, extra); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_4c38_0)(uae_u32 opcode) /* MULL */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 dst = get_long(dsta); m68k_incpc(6); m68k_mull(opcode, dst, extra); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c39_0)(uae_u32 opcode) /* MULL */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 dst = get_long(dsta); m68k_incpc(8); m68k_mull(opcode, dst, extra); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_4c3a_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = 2; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s32 dst = get_long(dsta); m68k_incpc(6); m68k_mull(opcode, dst, extra); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c3b_0)(uae_u32 opcode) /* MULL */ { uae_u32 dstreg = 3; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s32 dst = get_long(dsta); m68k_mull(opcode, dst, extra); }}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_4c3c_0)(uae_u32 opcode) /* MULL */ { {{ uae_s16 extra = get_iword(2); { uae_s32 dst = get_ilong(4); m68k_incpc(8); m68k_mull(opcode, dst, extra); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4c40_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = opcode & 7; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); m68k_divl(opcode, dst, extra, oldpc); }}}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4c50_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = opcode & 7; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); m68k_incpc(2); m68k_divl(opcode, dst, extra, oldpc); }}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4c58_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = opcode & 7; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; m68k_incpc(2); m68k_divl(opcode, dst, extra, oldpc); }}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4c60_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = opcode & 7; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; m68k_incpc(2); m68k_divl(opcode, dst, extra, oldpc); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4c68_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = opcode & 7; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); m68k_incpc(4); m68k_divl(opcode, dst, extra, oldpc); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c70_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = opcode & 7; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); m68k_divl(opcode, dst, extra, oldpc); }}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_4c78_0)(uae_u32 opcode) /* DIVL */ { {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); m68k_incpc(4); m68k_divl(opcode, dst, extra, oldpc); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c79_0)(uae_u32 opcode) /* DIVL */ { {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); m68k_incpc(6); m68k_divl(opcode, dst, extra, oldpc); }}}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_4c7a_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = 2; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); m68k_incpc(4); m68k_divl(opcode, dst, extra, oldpc); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c7b_0)(uae_u32 opcode) /* DIVL */ { uae_u32 dstreg = 3; {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s32 dst = get_long(dsta); m68k_divl(opcode, dst, extra, oldpc); }}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_4c7c_0)(uae_u32 opcode) /* DIVL */ { {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 extra = get_iword(0); { uae_s32 dst = get_ilong(2); m68k_incpc(6); m68k_divl(opcode, dst, extra, oldpc); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4c90_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4c98_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } _68k_areg(dstreg) = srca; }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ca8_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cb0_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; {m68k_incpc(4); { uaecptr srca = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cb8_0)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = (uae_s32)(uae_s16)get_iword(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cb9_0)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_ilong(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4cba_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 2; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = m68k_getpc () + 4; srca += (uae_s32)(uae_s16)get_iword(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cbb_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 3; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cd0_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4cd8_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } _68k_areg(dstreg) = srca; }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ce8_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cf0_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; {m68k_incpc(4); { uaecptr srca = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cf8_0)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = (uae_s32)(uae_s16)get_iword(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cf9_0)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_ilong(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4cfa_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 2; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = m68k_getpc () + 4; srca += (uae_s32)(uae_s16)get_iword(4); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cfb_0)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 3; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4e40_0)(uae_u32 opcode) /* TRAP */ { uae_u32 srcreg = (opcode & 15); {{ uae_u32 src = srcreg; m68k_incpc(2); Exception(src+32,0); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e50_0)(uae_u32 opcode) /* LINK */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr olda = _68k_areg(7) - 4; _68k_areg(7) = olda; { uae_s32 src = _68k_areg(srcreg); put_long(olda,src); _68k_areg(srcreg) = (_68k_areg(7)); { uae_s16 offs = get_iword(2); _68k_areg(7) += offs; }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4e58_0)(uae_u32 opcode) /* UNLK */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); _68k_areg(7) = src; { uaecptr olda = _68k_areg(7); { uae_s32 old = get_long(olda); _68k_areg(7) += 4; _68k_areg(srcreg) = (old); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4e60_0)(uae_u32 opcode) /* MVR2USP */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel901; } {{ uae_s32 src = _68k_areg(srcreg); uae_regs.usp = src; }}}m68k_incpc(2); endlabel901: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e68_0)(uae_u32 opcode) /* MVUSP2R */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel902; } {{ _68k_areg(srcreg) = (uae_regs.usp); }}}m68k_incpc(2); endlabel902: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e70_0)(uae_u32 opcode) /* RESET */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel903; } { customreset(); }}m68k_incpc(2); endlabel903: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e71_0)(uae_u32 opcode) /* NOP */ { {}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e72_0)(uae_u32 opcode) /* STOP */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel905; } {{ uae_s16 src = get_iword(2); uae_regs.sr = src; MakeFromSR(); m68k_setstopped(1); }}}m68k_incpc(4); endlabel905: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4e73_0)(uae_u32 opcode) /* RTE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel906; } { uae_u16 newsr; uae_u32 newpc; for (;;) { { uaecptr sra = _68k_areg(7); { uae_s16 sr = get_word(sra); _68k_areg(7) += 2; { uaecptr pca = _68k_areg(7); { uae_s32 pc = get_long(pca); _68k_areg(7) += 4; { uaecptr formata = _68k_areg(7); { uae_s16 format = get_word(formata); _68k_areg(7) += 2; newsr = sr; newpc = pc; if ((format & 0xF000) == 0x0000) { break; } else if ((format & 0xF000) == 0x1000) { ; } else if ((format & 0xF000) == 0x2000) { _68k_areg(7) += 4; break; } else if ((format & 0xF000) == 0x8000) { _68k_areg(7) += 50; break; } else if ((format & 0xF000) == 0x9000) { _68k_areg(7) += 12; break; } else if ((format & 0xF000) == 0xa000) { _68k_areg(7) += 24; break; } else if ((format & 0xF000) == 0xb000) { _68k_areg(7) += 84; break; } else { Exception(14,0); goto endlabel906; } uae_regs.sr = newsr; MakeFromSR(); } }}}}}} uae_regs.sr = newsr; MakeFromSR(); m68k_setpc_rte(newpc); }}endlabel906: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4e74_0)(uae_u32 opcode) /* RTD */ { { compiler_flush_jsr_stack(); { uaecptr pca = _68k_areg(7); { uae_s32 pc = get_long(pca); _68k_areg(7) += 4; { uae_s16 offs = get_iword(2); _68k_areg(7) += offs; m68k_setpc_rte(pc); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4e75_0)(uae_u32 opcode) /* RTS */ { { m68k_do_rts(); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e76_0)(uae_u32 opcode) /* TRAPV */ { {m68k_incpc(2); if (GET_VFLG) { Exception(7,m68k_getpc()); goto endlabel909; } }endlabel909: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e77_0)(uae_u32 opcode) /* RTR */ { { compiler_flush_jsr_stack(); MakeSR(); { uaecptr sra = _68k_areg(7); { uae_s16 sr = get_word(sra); _68k_areg(7) += 2; { uaecptr pca = _68k_areg(7); { uae_s32 pc = get_long(pca); _68k_areg(7) += 4; uae_regs.sr &= 0xFF00; sr &= 0xFF; uae_regs.sr |= sr; m68k_setpc(pc); MakeFromSR(); }}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4e7a_0)(uae_u32 opcode) /* MOVEC2 */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel911; } {{ uae_s16 src = get_iword(2); { int regno = (src >> 12) & 15; uae_u32 *regp = uae_regs.uae_regs + regno; if (! m68k_movec2(src & 0xFFF, regp)) goto endlabel911; }}}}m68k_incpc(4); endlabel911: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4e7b_0)(uae_u32 opcode) /* MOVE2C */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel912; } {{ uae_s16 src = get_iword(2); { int regno = (src >> 12) & 15; uae_u32 *regp = uae_regs.uae_regs + regno; if (! m68k_move2c(src & 0xFFF, regp)) goto endlabel912; }}}}m68k_incpc(4); endlabel912: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4e90_0)(uae_u32 opcode) /* JSR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); m68k_do_jsr(m68k_getpc() + 2, srca); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4ea8_0)(uae_u32 opcode) /* JSR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); m68k_do_jsr(m68k_getpc() + 4, srca); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4eb0_0)(uae_u32 opcode) /* JSR */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); m68k_do_jsr(m68k_getpc() + 0, srca); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4eb8_0)(uae_u32 opcode) /* JSR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); m68k_do_jsr(m68k_getpc() + 4, srca); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4eb9_0)(uae_u32 opcode) /* JSR */ { {{ uaecptr srca = get_ilong(2); m68k_do_jsr(m68k_getpc() + 6, srca); }}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4eba_0)(uae_u32 opcode) /* JSR */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); m68k_do_jsr(m68k_getpc() + 4, srca); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ebb_0)(uae_u32 opcode) /* JSR */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); m68k_do_jsr(m68k_getpc() + 0, srca); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4ed0_0)(uae_u32 opcode) /* JMP */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); m68k_setpc(srca); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4ee8_0)(uae_u32 opcode) /* JMP */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); m68k_setpc(srca); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ef0_0)(uae_u32 opcode) /* JMP */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); m68k_setpc(srca); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4ef8_0)(uae_u32 opcode) /* JMP */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); m68k_setpc(srca); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ef9_0)(uae_u32 opcode) /* JMP */ { {{ uaecptr srca = get_ilong(2); m68k_setpc(srca); }}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4efa_0)(uae_u32 opcode) /* JMP */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); m68k_setpc(srca); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4efb_0)(uae_u32 opcode) /* JMP */ { {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); m68k_setpc(srca); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5000_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5010_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5018_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5020_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5028_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5030_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5038_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } #endif #ifdef PART_5 unsigned long REGPARAM2 CPUFUNC(op_5039_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5040_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5048_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5050_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5058_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5060_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5068_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5070_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5078_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5079_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5080_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5088_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5090_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5098_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_50a0_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_50a8_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_50b0_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_50b8_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_50b9_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_50c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(0) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_50c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(0)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel954: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_50d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_50d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_50e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_50e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_50f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_50f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_50f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_50fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(0)) { Exception(7,m68k_getpc()); goto endlabel962; } }}m68k_incpc(4); endlabel962: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_50fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(0)) { Exception(7,m68k_getpc()); goto endlabel963; } }}m68k_incpc(6); endlabel963: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_50fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(0)) { Exception(7,m68k_getpc()); goto endlabel964; } }m68k_incpc(2); endlabel964: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5100_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5110_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5118_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5120_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5128_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5130_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5138_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5139_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5140_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5148_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5150_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5158_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5160_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5168_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5170_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5178_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5179_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5180_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5188_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5190_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5198_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_51a0_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_51a8_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_51b0_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_51b8_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_51b9_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_51c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(1) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_51c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(1)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel992: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_51d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_51d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_51e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_51e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_51f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_51f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_51f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_51fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(1)) { Exception(7,m68k_getpc()); goto endlabel1000; } }}m68k_incpc(4); endlabel1000: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_51fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(1)) { Exception(7,m68k_getpc()); goto endlabel1001; } }}m68k_incpc(6); endlabel1001: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_51fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(1)) { Exception(7,m68k_getpc()); goto endlabel1002; } }m68k_incpc(2); endlabel1002: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_52c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(2) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_52c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(2)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1004: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_52d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_52d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_52e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_52e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_52f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_52f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_52f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_52fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(2)) { Exception(7,m68k_getpc()); goto endlabel1012; } }}m68k_incpc(4); endlabel1012: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_52fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(2)) { Exception(7,m68k_getpc()); goto endlabel1013; } }}m68k_incpc(6); endlabel1013: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_52fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(2)) { Exception(7,m68k_getpc()); goto endlabel1014; } }m68k_incpc(2); endlabel1014: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_53c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(3) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_53c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(3)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1016: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_53d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_53d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_53e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_53e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_53f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_53f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_53f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_53fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(3)) { Exception(7,m68k_getpc()); goto endlabel1024; } }}m68k_incpc(4); endlabel1024: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_53fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(3)) { Exception(7,m68k_getpc()); goto endlabel1025; } }}m68k_incpc(6); endlabel1025: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_53fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(3)) { Exception(7,m68k_getpc()); goto endlabel1026; } }m68k_incpc(2); endlabel1026: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_54c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(4) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_54c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(4)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1028: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_54d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_54d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_54e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_54e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_54f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_54f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_54f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_54fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(4)) { Exception(7,m68k_getpc()); goto endlabel1036; } }}m68k_incpc(4); endlabel1036: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_54fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(4)) { Exception(7,m68k_getpc()); goto endlabel1037; } }}m68k_incpc(6); endlabel1037: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_54fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(4)) { Exception(7,m68k_getpc()); goto endlabel1038; } }m68k_incpc(2); endlabel1038: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_55c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(5) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_55c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(5)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1040: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_55d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_55d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_55e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_55e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_55f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_55f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_55f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_55fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(5)) { Exception(7,m68k_getpc()); goto endlabel1048; } }}m68k_incpc(4); endlabel1048: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_55fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(5)) { Exception(7,m68k_getpc()); goto endlabel1049; } }}m68k_incpc(6); endlabel1049: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_55fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(5)) { Exception(7,m68k_getpc()); goto endlabel1050; } }m68k_incpc(2); endlabel1050: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_56c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(6) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_56c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(6)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1052: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_56d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_56d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_56e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_56e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_56f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_56f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_56f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_56fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(6)) { Exception(7,m68k_getpc()); goto endlabel1060; } }}m68k_incpc(4); endlabel1060: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_56fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(6)) { Exception(7,m68k_getpc()); goto endlabel1061; } }}m68k_incpc(6); endlabel1061: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_56fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(6)) { Exception(7,m68k_getpc()); goto endlabel1062; } }m68k_incpc(2); endlabel1062: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_57c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(7) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_57c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(7)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1064: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_57d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_57d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_57e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_57e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_57f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_57f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_57f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_57fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(7)) { Exception(7,m68k_getpc()); goto endlabel1072; } }}m68k_incpc(4); endlabel1072: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_57fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(7)) { Exception(7,m68k_getpc()); goto endlabel1073; } }}m68k_incpc(6); endlabel1073: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_57fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(7)) { Exception(7,m68k_getpc()); goto endlabel1074; } }m68k_incpc(2); endlabel1074: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_58c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(8) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_58c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(8)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1076: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_58d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_58d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_58e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_58e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_58f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_58f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_58f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_58fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(8)) { Exception(7,m68k_getpc()); goto endlabel1084; } }}m68k_incpc(4); endlabel1084: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_58fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(8)) { Exception(7,m68k_getpc()); goto endlabel1085; } }}m68k_incpc(6); endlabel1085: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_58fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(8)) { Exception(7,m68k_getpc()); goto endlabel1086; } }m68k_incpc(2); endlabel1086: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_59c0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(9) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_59c8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(9)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1088: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_59d0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_59d8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_59e0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_59e8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_59f0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_59f8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_59f9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_59fa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(9)) { Exception(7,m68k_getpc()); goto endlabel1096; } }}m68k_incpc(4); endlabel1096: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_59fb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(9)) { Exception(7,m68k_getpc()); goto endlabel1097; } }}m68k_incpc(6); endlabel1097: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_59fc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(9)) { Exception(7,m68k_getpc()); goto endlabel1098; } }m68k_incpc(2); endlabel1098: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5ac0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(10) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5ac8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(10)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1100: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ad0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ad8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ae0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5ae8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5af0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5af8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5af9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5afa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(10)) { Exception(7,m68k_getpc()); goto endlabel1108; } }}m68k_incpc(4); endlabel1108: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5afb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(10)) { Exception(7,m68k_getpc()); goto endlabel1109; } }}m68k_incpc(6); endlabel1109: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5afc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(10)) { Exception(7,m68k_getpc()); goto endlabel1110; } }m68k_incpc(2); endlabel1110: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5bc0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(11) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5bc8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(11)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1112: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5bd0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5bd8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5be0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5be8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5bf0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5bf8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5bf9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5bfa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(11)) { Exception(7,m68k_getpc()); goto endlabel1120; } }}m68k_incpc(4); endlabel1120: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5bfb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(11)) { Exception(7,m68k_getpc()); goto endlabel1121; } }}m68k_incpc(6); endlabel1121: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5bfc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(11)) { Exception(7,m68k_getpc()); goto endlabel1122; } }m68k_incpc(2); endlabel1122: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5cc0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(12) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5cc8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(12)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1124: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5cd0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5cd8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ce0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5ce8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5cf0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5cf8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5cf9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5cfa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(12)) { Exception(7,m68k_getpc()); goto endlabel1132; } }}m68k_incpc(4); endlabel1132: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5cfb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(12)) { Exception(7,m68k_getpc()); goto endlabel1133; } }}m68k_incpc(6); endlabel1133: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5cfc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(12)) { Exception(7,m68k_getpc()); goto endlabel1134; } }m68k_incpc(2); endlabel1134: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5dc0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(13) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5dc8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(13)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1136: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5dd0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5dd8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5de0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5de8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5df0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5df8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5df9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5dfa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(13)) { Exception(7,m68k_getpc()); goto endlabel1144; } }}m68k_incpc(4); endlabel1144: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5dfb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(13)) { Exception(7,m68k_getpc()); goto endlabel1145; } }}m68k_incpc(6); endlabel1145: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5dfc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(13)) { Exception(7,m68k_getpc()); goto endlabel1146; } }m68k_incpc(2); endlabel1146: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5ec0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(14) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5ec8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(14)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1148: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ed0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ed8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ee0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5ee8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ef0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5ef8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ef9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5efa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(14)) { Exception(7,m68k_getpc()); goto endlabel1156; } }}m68k_incpc(4); endlabel1156: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5efb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(14)) { Exception(7,m68k_getpc()); goto endlabel1157; } }}m68k_incpc(6); endlabel1157: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5efc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(14)) { Exception(7,m68k_getpc()); goto endlabel1158; } }m68k_incpc(2); endlabel1158: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5fc0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(15) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5fc8_0)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword(2); if (!cctrue(15)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { m68k_incpc((uae_s32)offs + 2); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); endlabel1160: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5fd0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5fd8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5fe0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5fe8_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ff0_0)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5ff8_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3072; } #endif #ifdef PART_6 unsigned long REGPARAM2 CPUFUNC(op_5ff9_0)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong(2); { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5ffa_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s16 dummy = get_iword(2); if (cctrue(15)) { Exception(7,m68k_getpc()); goto endlabel1168; } }}m68k_incpc(4); endlabel1168: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ffb_0)(uae_u32 opcode) /* TRAPcc */ { {{ uae_s32 dummy = get_ilong(2); if (cctrue(15)) { Exception(7,m68k_getpc()); goto endlabel1169; } }}m68k_incpc(6); endlabel1169: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ffc_0)(uae_u32 opcode) /* TRAPcc */ { { if (cctrue(15)) { Exception(7,m68k_getpc()); goto endlabel1170; } }m68k_incpc(2); endlabel1170: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_6000_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(0)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1171: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6001_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(0)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1172: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_60ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(0)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1173: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6100_0)(uae_u32 opcode) /* BSR */ { {{ uae_s16 src = get_iword(2); uae_s32 s = (uae_s32)src + 2; m68k_do_bsr(m68k_getpc() + 4, s); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6101_0)(uae_u32 opcode) /* BSR */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; uae_s32 s = (uae_s32)src + 2; m68k_do_bsr(m68k_getpc() + 2, s); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_61ff_0)(uae_u32 opcode) /* BSR */ { {{ uae_s32 src = get_ilong(2); uae_s32 s = (uae_s32)src + 2; m68k_do_bsr(m68k_getpc() + 6, s); }}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6200_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(2)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1177: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6201_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(2)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1178: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_62ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(2)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1179: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6300_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(3)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1180: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6301_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(3)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1181: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_63ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(3)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1182: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6400_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(4)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1183: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6401_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(4)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1184: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_64ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(4)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1185: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6500_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(5)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1186: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6501_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(5)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1187: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_65ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(5)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1188: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6600_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(6)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1189: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6601_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(6)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1190: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_66ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(6)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1191: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6700_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(7)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1192: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6701_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(7)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1193: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_67ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(7)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1194: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6800_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(8)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1195: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6801_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(8)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1196: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_68ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(8)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1197: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6900_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(9)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1198: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6901_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(9)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1199: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_69ff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(9)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1200: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6a00_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(10)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1201: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6a01_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(10)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1202: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6aff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(10)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1203: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6b00_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(11)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1204: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6b01_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(11)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1205: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6bff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(11)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1206: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6c00_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(12)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1207: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6c01_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(12)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1208: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6cff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(12)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1209: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6d00_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(13)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1210: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6d01_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(13)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1211: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6dff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(13)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1212: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6e00_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(14)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1213: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6e01_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(14)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1214: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6eff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(14)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1215: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6f00_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword(2); if (!cctrue(15)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); endlabel1216: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6f01_0)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(15)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); endlabel1217: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6fff_0)(uae_u32 opcode) /* Bcc */ { {{ uae_s32 src = get_ilong(2); if (!cctrue(15)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel1218: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_7000_0)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_u32 src = srcreg; { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8000_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8010_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8018_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8020_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_8028_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8030_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8038_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8039_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_803a_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_803b_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_803c_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8040_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8050_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8058_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8060_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_8068_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8070_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8078_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8079_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_807a_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_807b_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_807c_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8080_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8090_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8098_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_80a0_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_80a8_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_80b0_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_80b8_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_80b9_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_80ba_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_80bb_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_80bc_0)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_80c0_0)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1253; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel1253: ; return 35840; } unsigned long REGPARAM2 CPUFUNC(op_80d0_0)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1254; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1254: ; return 36864; } unsigned long REGPARAM2 CPUFUNC(op_80d8_0)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1255; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1255: ; return 36864; } unsigned long REGPARAM2 CPUFUNC(op_80e0_0)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1256; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1256: ; return 37376; } unsigned long REGPARAM2 CPUFUNC(op_80e8_0)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1257; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1257: ; return 37888; } unsigned long REGPARAM2 CPUFUNC(op_80f0_0)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1258; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel1258: ; return 38400; } unsigned long REGPARAM2 CPUFUNC(op_80f8_0)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1259; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1259: ; return 37888; } unsigned long REGPARAM2 CPUFUNC(op_80f9_0)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(6); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1260; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1260: ; return 38912; } unsigned long REGPARAM2 CPUFUNC(op_80fa_0)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1261; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1261: ; return 37888; } unsigned long REGPARAM2 CPUFUNC(op_80fb_0)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1262; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel1262: ; return 38400; } unsigned long REGPARAM2 CPUFUNC(op_80fc_0)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = get_iword(2); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel1263; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel1263: ; return 36864; } unsigned long REGPARAM2 CPUFUNC(op_8100_0)(uae_u32 opcode) /* SBCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u16 newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (dst & 0xF0) - (src & 0xF0); uae_u16 newv, tmp_newv; int bcd = 0; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo & 0xF0) { newv -= 6; bcd = 6; }; if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; } SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8108_0)(uae_u32 opcode) /* SBCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u16 newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (dst & 0xF0) - (src & 0xF0); uae_u16 newv, tmp_newv; int bcd = 0; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo & 0xF0) { newv -= 6; bcd = 6; }; if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; } SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0); put_byte(dsta,newv); }}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8110_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8118_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8120_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8128_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8130_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8138_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8139_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8140_0)(uae_u32 opcode) /* PACK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uae_u16 val = _68k_dreg(srcreg) + get_iword(2); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & 0xffffff00) | ((val >> 4) & 0xf0) | (val & 0xf); }m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8148_0)(uae_u32 opcode) /* PACK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uae_u16 val; _68k_areg(srcreg) -= areg_byteinc[srcreg]; val = (uae_u16)get_byte(_68k_areg(srcreg)); _68k_areg(srcreg) -= areg_byteinc[srcreg]; val = (val | ((uae_u16)get_byte(_68k_areg(srcreg)) << 8)) + get_iword(2); _68k_areg(dstreg) -= areg_byteinc[dstreg]; put_byte(_68k_areg(dstreg),((val >> 4) & 0xf0) | (val & 0xf)); }m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8150_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8158_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8160_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8168_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8170_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8178_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8179_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8180_0)(uae_u32 opcode) /* UNPK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uae_u16 val = _68k_dreg(srcreg); val = (((val << 4) & 0xf00) | (val & 0xf)) + get_iword(2); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & 0xffff0000) | (val & 0xffff); }m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8188_0)(uae_u32 opcode) /* UNPK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uae_u16 val; _68k_areg(srcreg) -= areg_byteinc[srcreg]; val = (uae_u16)get_byte(_68k_areg(srcreg)); val = (((val << 4) & 0xf00) | (val & 0xf)) + get_iword(2); _68k_areg(dstreg) -= areg_byteinc[dstreg]; put_byte(_68k_areg(dstreg),val); _68k_areg(dstreg) -= areg_byteinc[dstreg]; put_byte(_68k_areg(dstreg),val >> 8); }m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8190_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8198_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_81a0_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_81a8_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_81b0_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_81b8_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_81b9_0)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_81c0_0)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1291; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel1291: ; return 40448; } unsigned long REGPARAM2 CPUFUNC(op_81d0_0)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1292; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1292: ; return 41472; } unsigned long REGPARAM2 CPUFUNC(op_81d8_0)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1293; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1293: ; return 41472; } unsigned long REGPARAM2 CPUFUNC(op_81e0_0)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1294; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1294: ; return 41984; } unsigned long REGPARAM2 CPUFUNC(op_81e8_0)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1295; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1295: ; return 42496; } unsigned long REGPARAM2 CPUFUNC(op_81f0_0)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1296; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel1296: ; return 43008; } unsigned long REGPARAM2 CPUFUNC(op_81f8_0)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1297; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1297: ; return 42496; } unsigned long REGPARAM2 CPUFUNC(op_81f9_0)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(6); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1298; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1298: ; return 43520; } unsigned long REGPARAM2 CPUFUNC(op_81fa_0)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1299; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel1299: ; return 42496; } unsigned long REGPARAM2 CPUFUNC(op_81fb_0)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); {m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1300; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel1300: ; return 43008; } unsigned long REGPARAM2 CPUFUNC(op_81fc_0)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = get_iword(2); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel1301; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel1301: ; return 41472; } unsigned long REGPARAM2 CPUFUNC(op_9000_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9010_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9018_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9020_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_9028_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9030_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9038_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9039_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_903a_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_903b_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_903c_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9040_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9048_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9050_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9058_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9060_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_9068_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9070_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9078_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9079_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_907a_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_907b_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_907c_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9080_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9088_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9090_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9098_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90a0_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90a8_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90b0_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_90b8_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90b9_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_90ba_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90bb_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_90bc_0)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90c0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_90c8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_90d0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_90d8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_90e0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_90e8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90f0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90f8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90f9_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90fa_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90fb_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90fc_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9100_0)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9108_0)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9110_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9118_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9120_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9128_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9130_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_9138_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9139_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9140_0)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9148_0)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9150_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9158_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9160_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9168_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9170_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_9178_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9179_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9180_0)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9188_0)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_9190_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9198_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_91a0_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_91a8_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_91b0_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_91b8_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_91b9_0)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_91c0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_91c8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_91d0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_91d8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_91e0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_91e8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_91f0_0)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_91f8_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_91f9_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_91fa_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_91fb_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_91fc_0)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b000_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b010_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b018_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b020_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_b028_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b030_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b038_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b039_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b03a_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b03b_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b03c_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b040_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } #endif #ifdef PART_7 unsigned long REGPARAM2 CPUFUNC(op_b048_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b050_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b058_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b060_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_b068_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b070_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b078_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b079_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b07a_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b07b_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b07c_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b080_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b088_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b090_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b098_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0a0_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0a8_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0b0_0)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b0b8_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0b9_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b0ba_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0bb_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b0bc_0)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0c0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b0c8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b0d0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b0d8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b0e0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_b0e8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0f0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0f8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0f9_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0fa_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0fb_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0fc_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b100_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b108_0)(uae_u32 opcode) /* CMPM */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b110_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b118_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b120_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b128_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b130_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b138_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b139_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b140_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b148_0)(uae_u32 opcode) /* CMPM */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b150_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b158_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b160_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b168_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b170_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b178_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b179_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b180_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b188_0)(uae_u32 opcode) /* CMPM */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b190_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b198_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b1a0_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_b1a8_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_b1b0_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_b1b8_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_b1b9_0)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_b1c0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b1c8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b1d0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b1d8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b1e0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b1e8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b1f0_0)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b1f8_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b1f9_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b1fa_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b1fb_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b1fc_0)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c000_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c010_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c018_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c020_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_c028_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c030_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c038_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c039_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c03a_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c03b_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c03c_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c040_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c050_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c058_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c060_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_c068_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c070_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c078_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c079_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c07a_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c07b_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c07c_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c080_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c090_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c098_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c0a0_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c0a8_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c0b0_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c0b8_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c0b9_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c0ba_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c0bb_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c0bc_0)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c0c0_0)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(2); return 17920; } unsigned long REGPARAM2 CPUFUNC(op_c0d0_0)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c0d8_0)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c0e0_0)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 19456; } unsigned long REGPARAM2 CPUFUNC(op_c0e8_0)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c0f0_0)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c0f8_0)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c0f9_0)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(6); return 20992; } unsigned long REGPARAM2 CPUFUNC(op_c0fa_0)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c0fb_0)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c0fc_0)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(4); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c100_0)(uae_u32 opcode) /* ABCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u16 newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (src & 0xF0) + (dst & 0xF0); uae_u16 newv, tmp_newv; int cflg; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo > 9) { newv += 6; } cflg = (newv & 0x3F0) > 0x90; if (cflg) newv += 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c108_0)(uae_u32 opcode) /* ABCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u16 newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (src & 0xF0) + (dst & 0xF0); uae_u16 newv, tmp_newv; int cflg; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo > 9) { newv += 6; } cflg = (newv & 0x3F0) > 0x90; if (cflg) newv += 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0); put_byte(dsta,newv); }}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c110_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c118_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c120_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c128_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c130_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c138_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c139_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c140_0)(uae_u32 opcode) /* EXG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); _68k_dreg(srcreg) = (dst); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c148_0)(uae_u32 opcode) /* EXG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); _68k_areg(srcreg) = (dst); _68k_areg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c150_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c158_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c160_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c168_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c170_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c178_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c179_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c188_0)(uae_u32 opcode) /* EXG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); _68k_dreg(srcreg) = (dst); _68k_areg(dstreg) = (src); }}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c190_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c198_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c1a0_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_c1a8_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_c1b0_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_c1b8_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_c1b9_0)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_c1c0_0)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(2); return 17920; } unsigned long REGPARAM2 CPUFUNC(op_c1d0_0)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c1d8_0)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c1e0_0)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 19456; } unsigned long REGPARAM2 CPUFUNC(op_c1e8_0)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c1f0_0)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c1f8_0)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c1f9_0)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(6); return 20992; } unsigned long REGPARAM2 CPUFUNC(op_c1fa_0)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c1fb_0)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c1fc_0)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(4); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_d000_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d010_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d018_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d020_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_d028_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d030_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d038_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d039_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d03a_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d03b_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d03c_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d040_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d048_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d050_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d058_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d060_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_d068_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d070_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d078_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d079_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d07a_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d07b_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d07c_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d080_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d088_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d090_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d098_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0a0_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0a8_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0b0_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d0b8_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0b9_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d0ba_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0bb_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d0bc_0)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0c0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d0c8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d0d0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d0d8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d0e0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_d0e8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0f0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0f8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0f9_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(6); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0fa_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0fb_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0fc_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d100_0)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d108_0)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d110_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d118_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d120_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d128_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d130_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d138_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d139_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d140_0)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d148_0)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d150_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d158_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d160_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; { uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d168_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d170_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d178_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d179_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d180_0)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d188_0)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_d190_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d198_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d1a0_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; { uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(2); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_d1a8_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_d1b0_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); {m68k_incpc(2); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_d1b8_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_d1b9_0)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong(2); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(6); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_d1c0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d1c8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d1d0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d1d8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 3072; } #endif #ifdef PART_8 unsigned long REGPARAM2 CPUFUNC(op_d1e0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d1e8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d1f0_0)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr srca = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d1f8_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d1f9_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d1fa_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d1fb_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{m68k_incpc(2); { uaecptr tmppc = m68k_getpc(); uaecptr srca = get_disp_ea_020(tmppc, next_iword()); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d1fc_0)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e000_0)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; uae_u32 sign = (0x80 & val) >> 7; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { val = 0xff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xff << (8 - cnt)) & (uae_u32)-sign; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e008_0)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG ((cnt == 8) & (val >> 7)); COPY_CARRY; val = 0; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e010_0)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (7 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e018_0)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { uae_u32 hival; cnt &= 7; hival = val << (8 - cnt); val >>= cnt; val |= hival; val &= 0xff; SET_CFLG ((val & 0x80) >> 7); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e020_0)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; uae_u32 sign = (0x80 & val) >> 7; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { val = 0xff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xff << (8 - cnt)) & (uae_u32)-sign; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e028_0)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG ((cnt == 8) & (val >> 7)); COPY_CARRY; val = 0; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e030_0)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 36) cnt -= 36; if (cnt >= 18) cnt -= 18; if (cnt >= 9) cnt -= 9; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (7 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e038_0)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 hival; cnt &= 7; hival = val << (8 - cnt); val >>= cnt; val |= hival; val &= 0xff; SET_CFLG ((val & 0x80) >> 7); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e040_0)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; uae_u32 sign = (0x8000 & val) >> 15; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { val = 0xffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffff << (16 - cnt)) & (uae_u32)-sign; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e048_0)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG ((cnt == 16) & (val >> 15)); COPY_CARRY; val = 0; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e050_0)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (15 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e058_0)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { uae_u32 hival; cnt &= 15; hival = val << (16 - cnt); val >>= cnt; val |= hival; val &= 0xffff; SET_CFLG ((val & 0x8000) >> 15); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e060_0)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; uae_u32 sign = (0x8000 & val) >> 15; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { val = 0xffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffff << (16 - cnt)) & (uae_u32)-sign; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e068_0)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG ((cnt == 16) & (val >> 15)); COPY_CARRY; val = 0; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e070_0)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 34) cnt -= 34; if (cnt >= 17) cnt -= 17; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (15 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e078_0)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 hival; cnt &= 15; hival = val << (16 - cnt); val >>= cnt; val |= hival; val &= 0xffff; SET_CFLG ((val & 0x8000) >> 15); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e080_0)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; uae_u32 sign = (0x80000000 & val) >> 31; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { val = 0xffffffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffffffff << (32 - cnt)) & (uae_u32)-sign; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e088_0)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG ((cnt == 32) & (val >> 31)); COPY_CARRY; val = 0; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e090_0)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (31 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e098_0)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { uae_u32 hival; cnt &= 31; hival = val << (32 - cnt); val >>= cnt; val |= hival; val &= 0xffffffff; SET_CFLG ((val & 0x80000000) >> 31); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0a0_0)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; uae_u32 sign = (0x80000000 & val) >> 31; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { val = 0xffffffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffffffff << (32 - cnt)) & (uae_u32)-sign; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0a8_0)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG ((cnt == 32) & (val >> 31)); COPY_CARRY; val = 0; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0b0_0)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 33) cnt -= 33; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (31 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0b8_0)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 hival; cnt &= 31; hival = val << (32 - cnt); val >>= cnt; val |= hival; val &= 0xffffffff; SET_CFLG ((val & 0x80000000) >> 31); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0d0_0)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e0d8_0)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e0e0_0)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e0e8_0)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e0f0_0)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e0f8_0)(uae_u32 opcode) /* ASRW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e0f9_0)(uae_u32 opcode) /* ASRW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e100_0)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_VFLG (val != 0); SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else { uae_u32 mask = (0xff << (7 - cnt)) & 0xff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e108_0)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else { val <<= (cnt - 1); SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e110_0)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 loval = val >> (7 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e118_0)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { uae_u32 loval; cnt &= 7; loval = val >> (8 - cnt); val <<= cnt; val |= loval; val &= 0xff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e120_0)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_VFLG (val != 0); SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { uae_u32 mask = (0xff << (7 - cnt)) & 0xff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e128_0)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { val <<= (cnt - 1); SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e130_0)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 36) cnt -= 36; if (cnt >= 18) cnt -= 18; if (cnt >= 9) cnt -= 9; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 loval = val >> (7 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e138_0)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 loval; cnt &= 7; loval = val >> (8 - cnt); val <<= cnt; val |= loval; val &= 0xff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e140_0)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_VFLG (val != 0); SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else { uae_u32 mask = (0xffff << (15 - cnt)) & 0xffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e148_0)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else { val <<= (cnt - 1); SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e150_0)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 loval = val >> (15 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e158_0)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { uae_u32 loval; cnt &= 15; loval = val >> (16 - cnt); val <<= cnt; val |= loval; val &= 0xffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e160_0)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_VFLG (val != 0); SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { uae_u32 mask = (0xffff << (15 - cnt)) & 0xffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e168_0)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { val <<= (cnt - 1); SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e170_0)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 34) cnt -= 34; if (cnt >= 17) cnt -= 17; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 loval = val >> (15 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e178_0)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 loval; cnt &= 15; loval = val >> (16 - cnt); val <<= cnt; val |= loval; val &= 0xffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e180_0)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_VFLG (val != 0); SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else { uae_u32 mask = (0xffffffff << (31 - cnt)) & 0xffffffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e188_0)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else { val <<= (cnt - 1); SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e190_0)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 loval = val >> (31 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e198_0)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { uae_u32 loval; cnt &= 31; loval = val >> (32 - cnt); val <<= cnt; val |= loval; val &= 0xffffffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1a0_0)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_VFLG (val != 0); SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { uae_u32 mask = (0xffffffff << (31 - cnt)) & 0xffffffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1a8_0)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { val <<= (cnt - 1); SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1b0_0)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 33) cnt -= 33; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 loval = val >> (31 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1b8_0)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 loval; cnt &= 31; loval = val >> (32 - cnt); val <<= cnt; val |= loval; val &= 0xffffffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1d0_0)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e1d8_0)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e1e0_0)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e1e8_0)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e1f0_0)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e1f8_0)(uae_u32 opcode) /* ASLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e1f9_0)(uae_u32 opcode) /* ASLW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e2d0_0)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e2d8_0)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e2e0_0)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e2e8_0)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e2f0_0)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e2f8_0)(uae_u32 opcode) /* LSRW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e2f9_0)(uae_u32 opcode) /* LSRW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e3d0_0)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e3d8_0)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e3e0_0)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e3e8_0)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e3f0_0)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e3f8_0)(uae_u32 opcode) /* LSLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e3f9_0)(uae_u32 opcode) /* LSLW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e4d0_0)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e4d8_0)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e4e0_0)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e4e8_0)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e4f0_0)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e4f8_0)(uae_u32 opcode) /* ROXRW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e4f9_0)(uae_u32 opcode) /* ROXRW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e5d0_0)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e5d8_0)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e5e0_0)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e5e8_0)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e5f0_0)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e5f8_0)(uae_u32 opcode) /* ROXLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e5f9_0)(uae_u32 opcode) /* ROXLW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e6d0_0)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e6d8_0)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e6e0_0)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e6e8_0)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e6f0_0)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e6f8_0)(uae_u32 opcode) /* RORW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e6f9_0)(uae_u32 opcode) /* RORW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e7d0_0)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e7d8_0)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); { uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}m68k_incpc(2); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e7e0_0)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; { uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}m68k_incpc(2); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e7e8_0)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e7f0_0)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{m68k_incpc(2); { uaecptr dataa = get_disp_ea_020(_68k_areg(srcreg), next_iword()); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e7f8_0)(uae_u32 opcode) /* ROLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}m68k_incpc(4); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e7f9_0)(uae_u32 opcode) /* ROLW */ { {{ uaecptr dataa = get_ilong(2); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}m68k_incpc(6); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e8c0_0)(uae_u32 opcode) /* BFTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_e8d0_0)(uae_u32 opcode) /* BFTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_e8e8_0)(uae_u32 opcode) /* BFTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e8f0_0)(uae_u32 opcode) /* BFTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e8f8_0)(uae_u32 opcode) /* BFTST */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e8f9_0)(uae_u32 opcode) /* BFTST */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e8fa_0)(uae_u32 opcode) /* BFTST */ { uae_u32 dstreg = 2; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e8fb_0)(uae_u32 opcode) /* BFTST */ { uae_u32 dstreg = 3; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e9c0_0)(uae_u32 opcode) /* BFEXTU */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_e9d0_0)(uae_u32 opcode) /* BFEXTU */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_e9e8_0)(uae_u32 opcode) /* BFEXTU */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e9f0_0)(uae_u32 opcode) /* BFEXTU */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e9f8_0)(uae_u32 opcode) /* BFEXTU */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e9f9_0)(uae_u32 opcode) /* BFEXTU */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e9fa_0)(uae_u32 opcode) /* BFEXTU */ { uae_u32 dstreg = 2; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e9fb_0)(uae_u32 opcode) /* BFEXTU */ { uae_u32 dstreg = 3; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); _68k_dreg((extra >> 12) & 7) = tmp; }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_eac0_0)(uae_u32 opcode) /* BFCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = ~tmp; tmp <<= (32 - width); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ((offset & 0x1f) == 0 ? 0 : (0xffffffff << (32 - (offset & 0x1f))))) | (tmp >> (offset & 0x1f)) | (((offset & 0x1f) + width) >= 32 ? 0 : (_68k_dreg(dstreg) & ((uae_u32)0xffffffff >> ((offset & 0x1f) + width)))); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_ead0_0)(uae_u32 opcode) /* BFCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = ~tmp; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_eae8_0)(uae_u32 opcode) /* BFCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = ~tmp; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_eaf0_0)(uae_u32 opcode) /* BFCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = ~tmp; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_eaf8_0)(uae_u32 opcode) /* BFCHG */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = ~tmp; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_eaf9_0)(uae_u32 opcode) /* BFCHG */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = ~tmp; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_ebc0_0)(uae_u32 opcode) /* BFEXTS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_ebd0_0)(uae_u32 opcode) /* BFEXTS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_ebe8_0)(uae_u32 opcode) /* BFEXTS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_ebf0_0)(uae_u32 opcode) /* BFEXTS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_ebf8_0)(uae_u32 opcode) /* BFEXTS */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_ebf9_0)(uae_u32 opcode) /* BFEXTS */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_ebfa_0)(uae_u32 opcode) /* BFEXTS */ { uae_u32 dstreg = 2; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_ebfb_0)(uae_u32 opcode) /* BFEXTS */ { uae_u32 dstreg = 3; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); if (GET_NFLG) tmp |= width == 32 ? 0 : (-1 << width); _68k_dreg((extra >> 12) & 7) = tmp; }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_ecc0_0)(uae_u32 opcode) /* BFCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0; tmp <<= (32 - width); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ((offset & 0x1f) == 0 ? 0 : (0xffffffff << (32 - (offset & 0x1f))))) | (tmp >> (offset & 0x1f)) | (((offset & 0x1f) + width) >= 32 ? 0 : (_68k_dreg(dstreg) & ((uae_u32)0xffffffff >> ((offset & 0x1f) + width)))); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_ecd0_0)(uae_u32 opcode) /* BFCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_ece8_0)(uae_u32 opcode) /* BFCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_ecf0_0)(uae_u32 opcode) /* BFCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_ecf8_0)(uae_u32 opcode) /* BFCLR */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_ecf9_0)(uae_u32 opcode) /* BFCLR */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_edc0_0)(uae_u32 opcode) /* BFFFO */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_edd0_0)(uae_u32 opcode) /* BFFFO */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_ede8_0)(uae_u32 opcode) /* BFFFO */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_edf0_0)(uae_u32 opcode) /* BFFFO */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_edf8_0)(uae_u32 opcode) /* BFFFO */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_edf9_0)(uae_u32 opcode) /* BFFFO */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_edfa_0)(uae_u32 opcode) /* BFFFO */ { uae_u32 dstreg = 2; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_edfb_0)(uae_u32 opcode) /* BFFFO */ { uae_u32 dstreg = 3; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr tmppc = m68k_getpc(); uaecptr dsta = get_disp_ea_020(tmppc, next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); { uae_u32 mask = 1 << (width-1); while (mask) { if (tmp & mask) break; mask >>= 1; offset++; }} _68k_dreg((extra >> 12) & 7) = offset; }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_eec0_0)(uae_u32 opcode) /* BFSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0xffffffff; tmp <<= (32 - width); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ((offset & 0x1f) == 0 ? 0 : (0xffffffff << (32 - (offset & 0x1f))))) | (tmp >> (offset & 0x1f)) | (((offset & 0x1f) + width) >= 32 ? 0 : (_68k_dreg(dstreg) & ((uae_u32)0xffffffff >> ((offset & 0x1f) + width)))); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_eed0_0)(uae_u32 opcode) /* BFSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0xffffffff; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_eee8_0)(uae_u32 opcode) /* BFSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0xffffffff; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_eef0_0)(uae_u32 opcode) /* BFSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0xffffffff; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_eef8_0)(uae_u32 opcode) /* BFSET */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0xffffffff; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_eef9_0)(uae_u32 opcode) /* BFSET */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = 0xffffffff; tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_efc0_0)(uae_u32 opcode) /* BFINS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {{ uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp = _68k_dreg(dstreg) << (offset & 0x1f); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = _68k_dreg((extra >> 12) & 7); SET_NFLG (tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG (tmp == 0); tmp <<= (32 - width); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ((offset & 0x1f) == 0 ? 0 : (0xffffffff << (32 - (offset & 0x1f))))) | (tmp >> (offset & 0x1f)) | (((offset & 0x1f) + width) >= 32 ? 0 : (_68k_dreg(dstreg) & ((uae_u32)0xffffffff >> ((offset & 0x1f) + width)))); }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_efd0_0)(uae_u32 opcode) /* BFINS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = _68k_dreg((extra >> 12) & 7); SET_NFLG (tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG (tmp == 0); tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(4); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_efe8_0)(uae_u32 opcode) /* BFINS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = _68k_dreg((extra >> 12) & 7); SET_NFLG (tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG (tmp == 0); tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_eff0_0)(uae_u32 opcode) /* BFINS */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); {m68k_incpc(4); { uaecptr dsta = get_disp_ea_020(_68k_areg(dstreg), next_iword()); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = _68k_dreg((extra >> 12) & 7); SET_NFLG (tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG (tmp == 0); tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_eff8_0)(uae_u32 opcode) /* BFINS */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = _68k_dreg((extra >> 12) & 7); SET_NFLG (tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG (tmp == 0); tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_eff9_0)(uae_u32 opcode) /* BFINS */ { {{ uae_s16 extra = get_iword(2); { uaecptr dsta = get_ilong(4); { uae_s32 offset = extra & 0x800 ? _68k_dreg((extra >> 6) & 7) : (extra >> 6) & 0x1f; int width = (((extra & 0x20 ? _68k_dreg(extra & 7) : extra) -1) & 0x1f) +1; uae_u32 tmp,bf0,bf1; dsta += (offset >> 3) | (offset & 0x80000000 ? ~0x1fffffff : 0); bf0 = get_long(dsta);bf1 = get_byte(dsta+4) & 0xff; tmp = (bf0 << (offset & 7)) | (bf1 >> (8 - (offset & 7))); tmp >>= (32 - width); SET_NFLG (tmp & (1 << (width-1)) ? 1 : 0); SET_ZFLG (tmp == 0); SET_VFLG (0); SET_CFLG (0); tmp = _68k_dreg((extra >> 12) & 7); SET_NFLG (tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG (tmp == 0); tmp <<= (32 - width); bf0 = (bf0 & (0xff000000 << (8 - (offset & 7)))) | (tmp >> (offset & 7)) | (((offset & 7) + width) >= 32 ? 0 : (bf0 & ((uae_u32)0xffffffff >> ((offset & 7) + width)))); put_long(dsta,bf0 ); if (((offset & 7) + width) > 32) { bf1 = (bf1 & (0xff >> (width - 32 + (offset & 7)))) | (tmp << (8 - (offset & 7))); put_byte(dsta+4,bf1); } }}}}m68k_incpc(8); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_f200_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f208_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f210_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f218_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f220_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f228_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f230_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f238_0)(uae_u32 opcode) /* FPP */ { {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f239_0)(uae_u32 opcode) /* FPP */ { {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f23a_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = 2; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f23b_0)(uae_u32 opcode) /* FPP */ { uae_u32 dstreg = 3; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f23c_0)(uae_u32 opcode) /* FPP */ { {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fpp_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f240_0)(uae_u32 opcode) /* FScc */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f248_0)(uae_u32 opcode) /* FDBcc */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fdbcc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f250_0)(uae_u32 opcode) /* FScc */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f258_0)(uae_u32 opcode) /* FScc */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f260_0)(uae_u32 opcode) /* FScc */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f268_0)(uae_u32 opcode) /* FScc */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f270_0)(uae_u32 opcode) /* FScc */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f278_0)(uae_u32 opcode) /* FScc */ { {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f279_0)(uae_u32 opcode) /* FScc */ { {{ uae_s16 extra = get_iword(2); m68k_incpc(4); fscc_opp(opcode,extra); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f27a_0)(uae_u32 opcode) /* FTRAPcc */ { {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s16 dummy = get_iword(0); m68k_incpc(2); ftrapcc_opp(opcode,oldpc); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f27b_0)(uae_u32 opcode) /* FTRAPcc */ { {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); { uae_s32 dummy = get_ilong(0); m68k_incpc(4); ftrapcc_opp(opcode,oldpc); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f27c_0)(uae_u32 opcode) /* FTRAPcc */ { {m68k_incpc(2); { uaecptr oldpc = m68k_getpc(); ftrapcc_opp(opcode,oldpc); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f280_0)(uae_u32 opcode) /* FBcc */ { uae_u32 srcreg = (opcode & 63); {m68k_incpc(2); { uaecptr pc = m68k_getpc(); { uae_s16 extra = get_iword(0); m68k_incpc(2); fbcc_opp(opcode,pc,extra); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_f2c0_0)(uae_u32 opcode) /* FBcc */ { uae_u32 srcreg = (opcode & 63); {m68k_incpc(2); { uaecptr pc = m68k_getpc(); { uae_s32 extra = get_ilong(0); m68k_incpc(4); fbcc_opp(opcode,pc,extra); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f310_0)(uae_u32 opcode) /* FSAVE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1827; } {m68k_incpc(2); fsave_opp(opcode); }}endlabel1827: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f320_0)(uae_u32 opcode) /* FSAVE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1828; } {m68k_incpc(2); fsave_opp(opcode); }}endlabel1828: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f328_0)(uae_u32 opcode) /* FSAVE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1829; } {m68k_incpc(2); fsave_opp(opcode); }}endlabel1829: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f330_0)(uae_u32 opcode) /* FSAVE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1830; } {m68k_incpc(2); fsave_opp(opcode); }}endlabel1830: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f338_0)(uae_u32 opcode) /* FSAVE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel1831; } {m68k_incpc(2); fsave_opp(opcode); }}endlabel1831: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f339_0)(uae_u32 opcode) /* FSAVE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel1832; } {m68k_incpc(2); fsave_opp(opcode); }}endlabel1832: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f350_0)(uae_u32 opcode) /* FRESTORE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1833; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1833: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f358_0)(uae_u32 opcode) /* FRESTORE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1834; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1834: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f368_0)(uae_u32 opcode) /* FRESTORE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1835; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1835: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f370_0)(uae_u32 opcode) /* FRESTORE */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1836; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1836: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f378_0)(uae_u32 opcode) /* FRESTORE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel1837; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1837: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f379_0)(uae_u32 opcode) /* FRESTORE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel1838; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1838: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f37a_0)(uae_u32 opcode) /* FRESTORE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel1839; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1839: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f37b_0)(uae_u32 opcode) /* FRESTORE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel1840; } {m68k_incpc(2); frestore_opp(opcode); }}endlabel1840: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f408_0)(uae_u32 opcode) /* CINVL */ { uae_u32 srcreg = ((opcode >> 6) & 3); uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel1841; } {}}m68k_incpc(2); endlabel1841: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f410_0)(uae_u32 opcode) /* CINVP */ { uae_u32 srcreg = ((opcode >> 6) & 3); uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel1842; } {}}m68k_incpc(2); endlabel1842: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f418_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1843; } {}}m68k_incpc(2); endlabel1843: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f419_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1844; } {}}m68k_incpc(2); endlabel1844: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f41a_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1845; } {}}m68k_incpc(2); endlabel1845: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f41b_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1846; } {}}m68k_incpc(2); endlabel1846: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f41c_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1847; } {}}m68k_incpc(2); endlabel1847: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f41d_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1848; } {}}m68k_incpc(2); endlabel1848: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f41e_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1849; } {}}m68k_incpc(2); endlabel1849: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f41f_0)(uae_u32 opcode) /* CINVA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1850; } {}}m68k_incpc(2); endlabel1850: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f428_0)(uae_u32 opcode) /* CPUSHL */ { uae_u32 srcreg = ((opcode >> 6) & 3); uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel1851; } {}}m68k_incpc(2); endlabel1851: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f430_0)(uae_u32 opcode) /* CPUSHP */ { uae_u32 srcreg = ((opcode >> 6) & 3); uae_u32 dstreg = opcode & 7; {if (!uae_regs.s) { Exception(8,0); goto endlabel1852; } {}}m68k_incpc(2); endlabel1852: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f438_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1853; } {}}m68k_incpc(2); endlabel1853: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f439_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1854; } {}}m68k_incpc(2); endlabel1854: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f43a_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1855; } {}}m68k_incpc(2); endlabel1855: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f43b_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1856; } {}}m68k_incpc(2); endlabel1856: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f43c_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1857; } {}}m68k_incpc(2); endlabel1857: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f43d_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1858; } {}}m68k_incpc(2); endlabel1858: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f43e_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1859; } {}}m68k_incpc(2); endlabel1859: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f43f_0)(uae_u32 opcode) /* CPUSHA */ { uae_u32 srcreg = ((opcode >> 6) & 3); {if (!uae_regs.s) { Exception(8,0); goto endlabel1860; } {}}m68k_incpc(2); endlabel1860: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f500_0)(uae_u32 opcode) /* MMUOP */ { uae_u32 srcreg = (uae_s32)(uae_s8)((opcode >> 3) & 255); uae_u32 dstreg = opcode & 7; {{ uae_u32 extra = srcreg; m68k_incpc(2); mmu_op(opcode,extra); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_f600_0)(uae_u32 opcode) /* MOVE16 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr memsa = _68k_areg(srcreg); { uaecptr memda = get_ilong(2); memsa &= ~15; memda &= ~15; put_long(memda, get_long(memsa)); put_long(memda+4, get_long(memsa+4)); put_long(memda+8, get_long(memsa+8)); put_long(memda+12, get_long(memsa+12)); _68k_areg(srcreg) += 16; }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f608_0)(uae_u32 opcode) /* MOVE16 */ { uae_u32 dstreg = opcode & 7; {{ uaecptr memsa = get_ilong(2); { uaecptr memda = _68k_areg(dstreg); memsa &= ~15; memda &= ~15; put_long(memda, get_long(memsa)); put_long(memda+4, get_long(memsa+4)); put_long(memda+8, get_long(memsa+8)); put_long(memda+12, get_long(memsa+12)); _68k_areg(dstreg) += 16; }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f610_0)(uae_u32 opcode) /* MOVE16 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr memsa = _68k_areg(srcreg); { uaecptr memda = get_ilong(2); memsa &= ~15; memda &= ~15; put_long(memda, get_long(memsa)); put_long(memda+4, get_long(memsa+4)); put_long(memda+8, get_long(memsa+8)); put_long(memda+12, get_long(memsa+12)); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f618_0)(uae_u32 opcode) /* MOVE16 */ { uae_u32 dstreg = opcode & 7; {{ uaecptr memsa = get_ilong(2); { uaecptr memda = _68k_areg(dstreg); memsa &= ~15; memda &= ~15; put_long(memda, get_long(memsa)); put_long(memda+4, get_long(memsa+4)); put_long(memda+8, get_long(memsa+8)); put_long(memda+12, get_long(memsa+12)); }}}m68k_incpc(6); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_f620_0)(uae_u32 opcode) /* MOVE16 */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = 0; { uaecptr mems = _68k_areg(srcreg) & ~15, memd; dstreg = (get_iword(2) >> 12) & 7; memd = _68k_areg(dstreg) & ~15; put_long(memd, get_long(mems)); put_long(memd+4, get_long(mems+4)); put_long(memd+8, get_long(mems+8)); put_long(memd+12, get_long(mems+12)); if (srcreg != dstreg) _68k_areg(srcreg) += 16; _68k_areg(dstreg) += 16; }m68k_incpc(4); return 2048; } #endif #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8) #define PART_1 1 #define PART_2 1 #define PART_3 1 #define PART_4 1 #define PART_5 1 #define PART_6 1 #define PART_7 1 #define PART_8 1 #endif #ifdef PART_1 #endif #ifdef PART_2 #endif #ifdef PART_3 #endif #ifdef PART_4 #endif #ifdef PART_5 #endif #ifdef PART_6 #endif #ifdef PART_7 #endif #ifdef PART_8 #endif #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8) #define PART_1 1 #define PART_2 1 #define PART_3 1 #define PART_4 1 #define PART_5 1 #define PART_6 1 #define PART_7 1 #define PART_8 1 #endif #ifdef PART_1 #endif #ifdef PART_2 #endif #ifdef PART_3 #endif #ifdef PART_4 #endif #ifdef PART_5 #endif #ifdef PART_6 #endif #ifdef PART_7 #endif #ifdef PART_8 #endif #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8) #define PART_1 1 #define PART_2 1 #define PART_3 1 #define PART_4 1 #define PART_5 1 #define PART_6 1 #define PART_7 1 #define PART_8 1 #endif #ifdef PART_1 unsigned long REGPARAM2 CPUFUNC(op_30_3)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_70_3)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_b0_3)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_130_3)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_13b_3)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_170_3)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_17b_3)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1b0_3)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1bb_3)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1f0_3)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1fb_3)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_230_3)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_270_3)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_2b0_3)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_430_3)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_470_3)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_4b0_3)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_630_3)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_670_3)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_6b0_3)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_830_3)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_83b_3)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_870_3)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_87b_3)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8b0_3)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8bb_3)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8f0_3)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8fb_3)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); put_byte(dsta,dst); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a30_3)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a70_3)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } #endif #ifdef PART_2 unsigned long REGPARAM2 CPUFUNC(op_ab0_3)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_c30_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c3b_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s8 src = get_ibyte(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c70_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c7b_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(4)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_cb0_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_cbb_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s32 src = get_ilong(2); { uaecptr tmppc = m68k_getpc() + 6; uaecptr dsta = get_disp_ea_000(tmppc, get_iword(6)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_1030_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_103b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_10b0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10bb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10fb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1130_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_113b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1170_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_117b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_1180_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1190_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1198_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11a0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11a8_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11b0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11b8_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11b9_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_11ba_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11bb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11bc_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11fb_3)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_13f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_13fb_3)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2030_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_203b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2070_3)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_207b_3)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_20b0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20bb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20fb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2130_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_213b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 7168; } #endif #ifdef PART_3 unsigned long REGPARAM2 CPUFUNC(op_2170_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_217b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_2180_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2188_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2190_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2198_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21a0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; { uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21a8_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21b0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21b8_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21b9_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_21ba_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21bb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21bc_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21fb_3)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(6); return 7680; } unsigned long REGPARAM2 CPUFUNC(op_23f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_23fb_3)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(8); return 8704; } unsigned long REGPARAM2 CPUFUNC(op_3030_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_303b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3070_3)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_307b_3)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_30b0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30bb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30fb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3130_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_313b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_3170_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_317b_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_3180_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3188_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3190_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3198_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31a0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; { uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31a8_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31b0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31b8_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31b9_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(6)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_31ba_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword(2); { uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31bb_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31bc_3)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}m68k_incpc(6); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31fb_3)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(6); return 5632; } unsigned long REGPARAM2 CPUFUNC(op_33f0_3)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_33fb_3)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong(4); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(8); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_4030_3)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4070_3)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); put_word(srca,newv); }}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_40b0_3)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); put_long(srca,newv); }}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_40f0_3)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel1988; } {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); MakeSR(); put_word(srca,uae_regs.sr); }}}m68k_incpc(4); endlabel1988: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4130_3)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel1989; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel1989; } }}}}m68k_incpc(4); endlabel1989: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_413b_3)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel1990; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel1990; } }}}}m68k_incpc(4); endlabel1990: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_41b0_3)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel1991; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel1991; } }}}}m68k_incpc(4); endlabel1991: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_41bb_3)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel1992; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel1992; } }}}}m68k_incpc(4); endlabel1992: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_41f0_3)(uae_u32 opcode) /* LEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_41fb_3)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4230_3)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); put_byte(srca,0); }}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4270_3)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); put_word(srca,0); }}m68k_incpc(4); return 3584; } #endif #ifdef PART_4 unsigned long REGPARAM2 CPUFUNC(op_42b0_3)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); put_long(srca,0); }}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_42f0_3)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); MakeSR(); put_word(srca,uae_regs.sr & 0xff); }}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4430_3)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(srca,dst); }}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4470_3)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(srca,dst); }}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_44b0_3)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(srca,dst); }}}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_44f0_3)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_44fb_3)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4630_3)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); put_byte(srca,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4670_3)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); put_word(srca,dst); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_46b0_3)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); put_long(srca,dst); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_46f0_3)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2007; } {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(4); endlabel2007: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_46fb_3)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2008; } {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}m68k_incpc(4); endlabel2008: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4830_3)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); put_byte(srca,newv); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4870_3)(uae_u32 opcode) /* PEA */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_487b_3)(uae_u32 opcode) /* PEA */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uaecptr dsta = _68k_areg(7) - 4; _68k_areg(7) = dsta; put_long(dsta,srca); }}}m68k_incpc(4); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_48b0_3)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_48f0_3)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a30_3)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a3b_3)(uae_u32 opcode) /* TST */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a70_3)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a7b_3)(uae_u32 opcode) /* TST */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4ab0_3)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4abb_3)(uae_u32 opcode) /* TST */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4af0_3)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; put_byte(srca,src); }}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4cb0_3)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cbb_3)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 3; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr tmppc = m68k_getpc() + 4; uaecptr srca = get_disp_ea_000(tmppc, get_iword(4)); { while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cf0_3)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword(4)); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cfb_3)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 3; { uae_u16 mask = get_iword(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr tmppc = m68k_getpc() + 4; uaecptr srca = get_disp_ea_000(tmppc, get_iword(4)); { while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}m68k_incpc(6); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4eb0_3)(uae_u32 opcode) /* JSR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); m68k_do_jsr(m68k_getpc() + 4, srca); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4ebb_3)(uae_u32 opcode) /* JSR */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); m68k_do_jsr(m68k_getpc() + 4, srca); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4ef0_3)(uae_u32 opcode) /* JMP */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); m68k_setpc(srca); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4efb_3)(uae_u32 opcode) /* JMP */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); m68k_setpc(srca); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5030_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } #endif #ifdef PART_5 unsigned long REGPARAM2 CPUFUNC(op_5070_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_50b0_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_50f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(0) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5130_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5170_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_51b0_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_51f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(1) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_52f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(2) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_53f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(3) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_54f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(4) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_55f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(5) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_56f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(6) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_57f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(7) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_58f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(8) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_59f0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(9) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5af0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(10) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5bf0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(11) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5cf0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(12) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5df0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(13) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5ef0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(14) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5ff0_3)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { int val = cctrue(15) ? 0xff : 0; put_byte(srca,val); }}}m68k_incpc(4); return 3584; } #endif #ifdef PART_6 unsigned long REGPARAM2 CPUFUNC(op_60ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(0)) goto endlabel2051; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2051; { uae_s32 src = get_ilong(2); if (!cctrue(0)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2051: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_62ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(2)) goto endlabel2052; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2052; { uae_s32 src = get_ilong(2); if (!cctrue(2)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2052: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_63ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(3)) goto endlabel2053; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2053; { uae_s32 src = get_ilong(2); if (!cctrue(3)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2053: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_64ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(4)) goto endlabel2054; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2054; { uae_s32 src = get_ilong(2); if (!cctrue(4)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2054: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_65ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(5)) goto endlabel2055; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2055; { uae_s32 src = get_ilong(2); if (!cctrue(5)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2055: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_66ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(6)) goto endlabel2056; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2056; { uae_s32 src = get_ilong(2); if (!cctrue(6)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2056: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_67ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(7)) goto endlabel2057; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2057; { uae_s32 src = get_ilong(2); if (!cctrue(7)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2057: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_68ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(8)) goto endlabel2058; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2058; { uae_s32 src = get_ilong(2); if (!cctrue(8)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2058: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_69ff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(9)) goto endlabel2059; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2059; { uae_s32 src = get_ilong(2); if (!cctrue(9)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2059: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6aff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(10)) goto endlabel2060; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2060; { uae_s32 src = get_ilong(2); if (!cctrue(10)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2060: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6bff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(11)) goto endlabel2061; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2061; { uae_s32 src = get_ilong(2); if (!cctrue(11)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2061: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6cff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(12)) goto endlabel2062; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2062; { uae_s32 src = get_ilong(2); if (!cctrue(12)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2062: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6dff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(13)) goto endlabel2063; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2063; { uae_s32 src = get_ilong(2); if (!cctrue(13)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2063: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6eff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(14)) goto endlabel2064; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2064; { uae_s32 src = get_ilong(2); if (!cctrue(14)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2064: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6fff_3)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(15)) goto endlabel2065; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2065; { uae_s32 src = get_ilong(2); if (!cctrue(15)) goto didnt_jump; m68k_incpc ((uae_s32)src + 2); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); endlabel2065: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8030_3)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_803b_3)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8070_3)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_807b_3)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_80b0_3)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_80bb_3)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_80f0_3)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel2072; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel2072: ; return 38400; } unsigned long REGPARAM2 CPUFUNC(op_80fb_3)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel2073; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel2073: ; return 38400; } unsigned long REGPARAM2 CPUFUNC(op_8130_3)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8170_3)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_81b0_3)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_81f0_3)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel2077; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel2077: ; return 43008; } unsigned long REGPARAM2 CPUFUNC(op_81fb_3)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel2078; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}endlabel2078: ; return 43008; } unsigned long REGPARAM2 CPUFUNC(op_9030_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_903b_3)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9070_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_907b_3)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90b0_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_90bb_3)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_90f0_3)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90fb_3)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9130_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_9170_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_91b0_3)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_91f0_3)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_91fb_3)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b030_3)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b03b_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } #endif #ifdef PART_7 unsigned long REGPARAM2 CPUFUNC(op_b070_3)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b07b_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0b0_3)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b0bb_3)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b0f0_3)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0fb_3)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b130_3)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b170_3)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b1b0_3)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_b1f0_3)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b1fb_3)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c030_3)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c03b_3)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c070_3)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c07b_3)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c0b0_3)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c0bb_3)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c0f0_3)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c0fb_3)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c130_3)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); put_byte(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c170_3)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); put_word(dsta,src); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c1b0_3)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); put_long(dsta,src); }}}}m68k_incpc(4); return 6656; } unsigned long REGPARAM2 CPUFUNC(op_c1f0_3)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c1fb_3)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(4); return 20480; } unsigned long REGPARAM2 CPUFUNC(op_d030_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d03b_3)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d070_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d07b_3)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0b0_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d0bb_3)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d0f0_3)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0fb_3)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d130_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_byte(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d170_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_word(dsta,newv); }}}}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d1b0_3)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword(2)); { uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); put_long(dsta,newv); }}}}}}}m68k_incpc(4); return 6656; } #endif #ifdef PART_8 unsigned long REGPARAM2 CPUFUNC(op_d1f0_3)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d1fb_3)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword(2)); { uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e0f0_3)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e1f0_3)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e2f0_3)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e3f0_3)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e4f0_3)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e5f0_3)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e6f0_3)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e7f0_3)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); { uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); put_word(dataa,val); }}}}m68k_incpc(4); return 4608; } #endif #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8) #define PART_1 1 #define PART_2 1 #define PART_3 1 #define PART_4 1 #define PART_5 1 #define PART_6 1 #define PART_7 1 #define PART_8 1 #endif #ifdef PART_1 #endif #ifdef PART_2 #endif #ifdef PART_3 unsigned long REGPARAM2 CPUFUNC(op_40c0_4)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ MakeSR(); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((uae_regs.sr) & 0xffff); }}m68k_incpc(2); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_40d0_4)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); MakeSR(); put_word(srca,uae_regs.sr); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40d8_4)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += 2; MakeSR(); put_word(srca,uae_regs.sr); }}m68k_incpc(2); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40e0_4)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; _68k_areg(srcreg) = srca; MakeSR(); put_word(srca,uae_regs.sr); }}m68k_incpc(2); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_40e8_4)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword(2); MakeSR(); put_word(srca,uae_regs.sr); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_40f0_4)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword(2)); MakeSR(); put_word(srca,uae_regs.sr); }}m68k_incpc(4); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_40f8_4)(uae_u32 opcode) /* MVSR2 */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword(2); MakeSR(); put_word(srca,uae_regs.sr); }}m68k_incpc(4); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_40f9_4)(uae_u32 opcode) /* MVSR2 */ { {{ uaecptr srca = get_ilong(2); MakeSR(); put_word(srca,uae_regs.sr); }}m68k_incpc(6); return 4096; } #endif #ifdef PART_4 unsigned long REGPARAM2 CPUFUNC(op_4e73_4)(uae_u32 opcode) /* RTE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2147; } {{ uaecptr sra = _68k_areg(7); { uae_s16 sr = get_word(sra); _68k_areg(7) += 2; { uaecptr pca = _68k_areg(7); { uae_s32 pc = get_long(pca); _68k_areg(7) += 4; uae_regs.sr = sr; m68k_setpc_rte(pc); MakeFromSR(); }}}}}}endlabel2147: ; return 4096; } #endif #ifdef PART_5 #endif #ifdef PART_6 #endif #ifdef PART_7 #endif #ifdef PART_8 #endif #if !defined(PART_1) && !defined(PART_2) && !defined(PART_3) && !defined(PART_4) && !defined(PART_5) && !defined(PART_6) && !defined(PART_7) && !defined(PART_8) #define PART_1 1 #define PART_2 1 #define PART_3 1 #define PART_4 1 #define PART_5 1 #define PART_6 1 #define PART_7 1 #define PART_8 1 #endif #ifdef PART_1 unsigned long REGPARAM2 CPUFUNC(op_0_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_10_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_18_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_20_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_28_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_30_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_38_5)(uae_u32 opcode) /* OR */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_39_5)(uae_u32 opcode) /* OR */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_3c_5)(uae_u32 opcode) /* ORSR */ { { MakeSR(); { uae_s16 src = get_iword_prefetch(2); src &= 0xFF; uae_regs.sr |= src; MakeFromSR(); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_50_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2158; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2158: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_58_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2159; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2159: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_60_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2160; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2160: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_68_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2161; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2161: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_70_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2162; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2162: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_78_5)(uae_u32 opcode) /* OR */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2163; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2163: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_79_5)(uae_u32 opcode) /* OR */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2164; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2164: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_7c_5)(uae_u32 opcode) /* ORSR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2165; } { MakeSR(); { uae_s16 src = get_iword_prefetch(2); uae_regs.sr |= src; MakeFromSR(); }}}m68k_incpc(4); fill_prefetch_0 (); endlabel2165: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_80_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2167; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2167: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_98_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2168; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2168: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_a0_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2169; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2169: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_a8_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2170; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2170: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_b0_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2171; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2171: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_b8_5)(uae_u32 opcode) /* OR */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2172; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2172: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_b9_5)(uae_u32 opcode) /* OR */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2173; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(10); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2173: ; return 9216; } unsigned long REGPARAM2 CPUFUNC(op_100_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_108_5)(uae_u32 opcode) /* MVPMR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr memp = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_u16 val = (get_byte(memp) << 8) + get_byte(memp + 2); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_110_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_118_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_120_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_128_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_130_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_138_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_139_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_13a_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_13b_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_13c_5)(uae_u32 opcode) /* BTST */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = get_ibyte_prefetch(2); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_140_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_148_5)(uae_u32 opcode) /* MVPMR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr memp = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_u32 val = (get_byte(memp) << 24) + (get_byte(memp + 2) << 16) + (get_byte(memp + 4) << 8) + get_byte(memp + 6); _68k_dreg(dstreg) = (val); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_150_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_158_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_160_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_168_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_170_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_178_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_179_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_17a_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_17b_5)(uae_u32 opcode) /* BCHG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_180_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_188_5)(uae_u32 opcode) /* MVPRM */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); uaecptr memp = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); put_byte(memp, src >> 8); put_byte(memp + 2, src); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_190_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_198_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1a0_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1a8_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1b0_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1b8_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1b9_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1ba_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1bb_5)(uae_u32 opcode) /* BCLR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1c0_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_1c8_5)(uae_u32 opcode) /* MVPRM */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); uaecptr memp = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); put_byte(memp, src >> 24); put_byte(memp + 2, src >> 16); put_byte(memp + 4, src >> 8); put_byte(memp + 6, src); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1d0_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1d8_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1e0_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,dst); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1e8_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1f0_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1f8_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1f9_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1fa_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 2; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = m68k_getpc () + 2; dsta += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1fb_5)(uae_u32 opcode) /* BSET */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = 3; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr tmppc = m68k_getpc() + 2; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_200_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_210_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_218_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_220_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_228_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_230_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_238_5)(uae_u32 opcode) /* AND */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_239_5)(uae_u32 opcode) /* AND */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_23c_5)(uae_u32 opcode) /* ANDSR */ { { MakeSR(); { uae_s16 src = get_iword_prefetch(2); src |= 0xFF00; uae_regs.sr &= src; MakeFromSR(); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_240_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_250_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2229; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2229: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_258_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2230; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2230: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_260_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2231; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2231: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_268_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2232; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2232: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_270_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2233; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2233: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_278_5)(uae_u32 opcode) /* AND */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2234; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2234: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_279_5)(uae_u32 opcode) /* AND */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2235; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2235: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_27c_5)(uae_u32 opcode) /* ANDSR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2236; } { MakeSR(); { uae_s16 src = get_iword_prefetch(2); uae_regs.sr &= src; MakeFromSR(); }}}m68k_incpc(4); fill_prefetch_0 (); endlabel2236: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_280_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_290_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2238; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2238: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_298_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2239; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2239: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2a0_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2240; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2240: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_2a8_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2241; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2241: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_2b0_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2242; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2242: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_2b8_5)(uae_u32 opcode) /* AND */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2243; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2243: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_2b9_5)(uae_u32 opcode) /* AND */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2244; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(10); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2244: ; return 9216; } unsigned long REGPARAM2 CPUFUNC(op_400_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_410_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_418_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_420_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_428_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_430_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_438_5)(uae_u32 opcode) /* SUB */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_439_5)(uae_u32 opcode) /* SUB */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_440_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_450_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2254; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2254: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_458_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2255; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2255: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_460_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2256; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2256: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_468_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2257; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2257: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_470_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2258; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2258: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_478_5)(uae_u32 opcode) /* SUB */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2259; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2259: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_479_5)(uae_u32 opcode) /* SUB */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2260; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2260: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_480_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_490_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2262; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2262: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_498_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2263; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2263: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_4a0_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2264; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2264: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_4a8_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2265; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2265: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_4b0_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2266; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2266: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_4b8_5)(uae_u32 opcode) /* SUB */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2267; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2267: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_4b9_5)(uae_u32 opcode) /* SUB */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2268; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(10); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2268: ; return 9216; } unsigned long REGPARAM2 CPUFUNC(op_600_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_610_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_618_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_620_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_628_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_630_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_638_5)(uae_u32 opcode) /* ADD */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_639_5)(uae_u32 opcode) /* ADD */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_640_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_650_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2278; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2278: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_658_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2279; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2279: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_660_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2280; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2280: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_668_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2281; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2281: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_670_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2282; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2282: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_678_5)(uae_u32 opcode) /* ADD */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2283; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2283: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_679_5)(uae_u32 opcode) /* ADD */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2284; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2284: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_680_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_690_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2286; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2286: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_698_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2287; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2287: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_6a0_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2288; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2288: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_6a8_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2289; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2289: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_6b0_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2290; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2290: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_6b8_5)(uae_u32 opcode) /* ADD */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2291; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2291: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_6b9_5)(uae_u32 opcode) /* ADD */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2292; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(10); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2292: ; return 9216; } unsigned long REGPARAM2 CPUFUNC(op_800_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_810_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_818_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_820_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_828_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_830_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_838_5)(uae_u32 opcode) /* BTST */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_839_5)(uae_u32 opcode) /* BTST */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(8); fill_prefetch_0 (); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_83a_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_83b_5)(uae_u32 opcode) /* BTST */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_83c_5)(uae_u32 opcode) /* BTST */ { {{ uae_s16 src = get_iword_prefetch(2); { uae_s8 dst = get_ibyte_prefetch(4); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_840_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_850_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_858_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_860_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_868_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_870_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_878_5)(uae_u32 opcode) /* BCHG */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_879_5)(uae_u32 opcode) /* BCHG */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_87a_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_87b_5)(uae_u32 opcode) /* BCHG */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; dst ^= (1 << src); SET_ZFLG (((uae_u32)dst & (1 << src)) >> src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_880_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_890_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_898_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8a0_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8a8_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8b0_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8b8_5)(uae_u32 opcode) /* BCLR */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8b9_5)(uae_u32 opcode) /* BCLR */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_8ba_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8bb_5)(uae_u32 opcode) /* BCLR */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst &= ~(1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8c0_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src &= 31; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); _68k_dreg(dstreg) = (dst); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8d0_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8d8_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8e0_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8e8_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8f0_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_8f8_5)(uae_u32 opcode) /* BSET */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8f9_5)(uae_u32 opcode) /* BSET */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_8fa_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8fb_5)(uae_u32 opcode) /* BSET */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src &= 7; SET_ZFLG (1 ^ ((dst >> src) & 1)); dst |= (1 << src); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,dst); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a00_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a10_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a18_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a20_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_a28_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a30_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a38_5)(uae_u32 opcode) /* EOR */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a39_5)(uae_u32 opcode) /* EOR */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_a3c_5)(uae_u32 opcode) /* EORSR */ { { MakeSR(); { uae_s16 src = get_iword_prefetch(2); src &= 0xFF; uae_regs.sr ^= src; MakeFromSR(); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a40_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a50_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2344; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2344: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a58_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2345; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2345: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_a60_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2346; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2346: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_a68_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2347; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2347: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a70_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2348; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2348: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_a78_5)(uae_u32 opcode) /* EOR */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2349; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2349: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_a79_5)(uae_u32 opcode) /* EOR */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2350; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel2350: ; return 6144; } #endif #ifdef PART_2 unsigned long REGPARAM2 CPUFUNC(op_a7c_5)(uae_u32 opcode) /* EORSR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2351; } { MakeSR(); { uae_s16 src = get_iword_prefetch(2); uae_regs.sr ^= src; MakeFromSR(); }}}m68k_incpc(4); fill_prefetch_0 (); endlabel2351: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_a80_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_a90_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2353; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2353: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_a98_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2354; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2354: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_aa0_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2355; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2355: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_aa8_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2356; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2356: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_ab0_5)(uae_u32 opcode) /* EOR */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2357; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2357: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_ab8_5)(uae_u32 opcode) /* EOR */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2358; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2358: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_ab9_5)(uae_u32 opcode) /* EOR */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2359; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(10); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel2359: ; return 9216; } unsigned long REGPARAM2 CPUFUNC(op_c00_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c10_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c18_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c20_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c28_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c30_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c38_5)(uae_u32 opcode) /* CMP */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c39_5)(uae_u32 opcode) /* CMP */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(8); fill_prefetch_0 (); return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c3a_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 2; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword_prefetch(4); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c3b_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c40_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c50_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2371; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2371: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c58_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2372; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2372: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c60_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2373; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2373: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c68_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2374; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2374: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c70_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2375; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2375: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c78_5)(uae_u32 opcode) /* CMP */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2376; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2376: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c79_5)(uae_u32 opcode) /* CMP */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2377; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2377: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c7a_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 2; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = m68k_getpc () + 4; dsta += (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2378; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2378: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c7b_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr tmppc = m68k_getpc() + 4; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2379; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2379: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c80_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c90_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2381; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2381: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c98_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2382; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2382: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_ca0_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2383; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2383: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_ca8_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2384; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2384: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_cb0_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = opcode & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2385; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2385: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_cb8_5)(uae_u32 opcode) /* CMP */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2386; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2386: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_cb9_5)(uae_u32 opcode) /* CMP */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2387; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(10); fill_prefetch_0 (); endlabel2387: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_cba_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 2; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = m68k_getpc () + 6; dsta += (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2388; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2388: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_cbb_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = 3; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr tmppc = m68k_getpc() + 6; uaecptr dsta = get_disp_ea_000(tmppc, get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2389; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2389: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_1000_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_1010_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1018_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1020_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_1028_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1030_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1038_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1039_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_103a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_103b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_103c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1080_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_1090_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1098_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10a0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_10a8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10b0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10b8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10b9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_10ba_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10bb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10bc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_10d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_10e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_10e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10f8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10f9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_10fa_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_10fb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_10fc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); _68k_areg(dstreg) += areg_byteinc[dstreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1100_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_1110_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1118_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1120_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1128_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1130_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1138_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1139_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_113a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_113b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_113c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1140_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_1150_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1158_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1160_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1168_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1170_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_1178_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_1179_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_117a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_117b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_117c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_1180_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_1190_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_1198_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11a0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11a8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11b0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11b8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11b9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_11ba_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11bb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11bc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_11d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_11d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_11e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_11e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11f8_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11f9_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_11fa_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_11fb_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_11fc_5)(uae_u32 opcode) /* MOVE */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_13c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_13d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_13d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = get_ilong_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_13e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_ilong_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5632; } unsigned long REGPARAM2 CPUFUNC(op_13e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_13f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_13f8_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_13f9_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong_prefetch(6); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(10); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 7168; } unsigned long REGPARAM2 CPUFUNC(op_13fa_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6144; } unsigned long REGPARAM2 CPUFUNC(op_13fb_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uaecptr dsta = get_ilong_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 6656; } unsigned long REGPARAM2 CPUFUNC(op_13fc_5)(uae_u32 opcode) /* MOVE */ { {{ uae_s8 src = get_ibyte_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_byte(dsta,src); }}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_2000_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2008_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2010_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2480; } {{ uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2480: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2018_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2481; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2481: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2020_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2482; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2482: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2028_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2483; } {{ uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2483: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2030_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2484; } {{ uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2484: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2038_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2485; } {{ uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2485: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2039_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2486; } {{ uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2486: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_203a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2487; } {{ uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2487: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_203b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2488; } {{ uae_s32 src = get_long(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2488: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_203c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2040_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2048_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_2050_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2492; } {{ uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2492: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2058_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2493; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2493: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2060_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2494; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2494: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2068_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2495; } {{ uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2495: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2070_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2496; } {{ uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2496: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2078_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2497; } {{ uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2497: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2079_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2498; } {{ uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2498: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_207a_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2499; } {{ uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2499: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_207b_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2500; } {{ uae_s32 src = get_long(srca); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2500: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_207c_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_u32 val = src; _68k_areg(dstreg) = (val); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2080_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2502; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}endlabel2502: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2088_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2503; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}endlabel2503: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_2090_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2504; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2504; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2504: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_2098_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2505; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2505; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2505: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20a0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2506; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2506; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2506: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_20a8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2507; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2507; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2507: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20b0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2508; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2508; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2508: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20b8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2509; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2509; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2509: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20b9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2510; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2510; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2510: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_20ba_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2511; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2511; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2511: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20bb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2512; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2512; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2512: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20bc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2513; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2513: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2514; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}endlabel2514: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_20c8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2515; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}endlabel2515: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_20d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2516; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2516; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2516: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2517; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2517; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2517: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_20e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2518; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2518; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2518: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_20e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2519; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2519; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2519: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2520; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2520; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2520: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20f8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2521; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2521; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2521: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20f9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2522; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2522; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2522: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_20fa_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2523; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2523; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2523: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_20fb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2524; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2524; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2524: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_20fc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2525; } { _68k_areg(dstreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2525: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_2100_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2526; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}endlabel2526: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2108_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2527; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}endlabel2527: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_2110_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2528; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2528; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2528: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_2118_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2529; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2529; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2529: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_2120_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2530; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2530; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}}endlabel2530: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2128_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2531; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2531; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2531: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2130_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2532; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2532; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2532: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2138_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2533; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2533; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2533: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2139_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2534; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2534; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2534: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_213a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2535; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2535; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2535: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_213b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2536; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2536; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2536: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_213c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2537; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2537: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_2140_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2538; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2538: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_2148_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2539; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2539: ; return 4096; } #endif #ifdef PART_3 unsigned long REGPARAM2 CPUFUNC(op_2150_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2540; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2540; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2540: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2158_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2541; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2541; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2541: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2160_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2542; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2542; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2542: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2168_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2543; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2543; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2543: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2170_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2544; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2544; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2544: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_2178_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2545; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2545; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2545: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_2179_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2546; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2546; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2546: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_217a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2547; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2547; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2547: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_217b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2548; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2548; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2548: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_217c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2549; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2549: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_2180_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2550; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2550: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2188_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2551; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2551: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_2190_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2552; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2552; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2552: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_2198_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2553; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2553; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2553: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21a0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2554; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2554; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2554: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21a8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2555; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2555; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2555: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21b0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2556; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2556; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2556: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21b8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2557; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2557; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2557: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21b9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2558; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2558; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2558: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_21ba_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2559; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2559; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2559: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21bb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2560; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2560; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2560: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21bc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2561; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2561: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2562; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2562: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_21c8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2563; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2563: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_21d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2564; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2564; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2564: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_21d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2565; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2565; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2565: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_21e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2566; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2566; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2566: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_21e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2567; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2567; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2567: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2568; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2568; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2568: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21f8_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2569; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2569; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2569: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21f9_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2570; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2570; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2570: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_21fa_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2571; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2571; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2571: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_21fb_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2572; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2572; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2572: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_21fc_5)(uae_u32 opcode) /* MOVE */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2573; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2573: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_23c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2574; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2574: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_23c8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2575; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2575: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_23d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2576; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2576; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2576: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_23d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2577; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2577; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2577: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_23e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2578; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2578; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2578: ; return 7680; } unsigned long REGPARAM2 CPUFUNC(op_23e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2579; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2579; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2579: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_23f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2580; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2580; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2580: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_23f8_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2581; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2581; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2581: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_23f9_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2582; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2582; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(10); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2582: ; return 9216; } unsigned long REGPARAM2 CPUFUNC(op_23fa_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2583; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2583; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2583: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_23fb_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2584; } {{ uae_s32 src = get_long(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2584; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_long(dsta,src); }}}}}}endlabel2584: ; return 8704; } unsigned long REGPARAM2 CPUFUNC(op_23fc_5)(uae_u32 opcode) /* MOVE */ { {{ uae_s32 src = get_ilong_prefetch(2); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2585; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(10); fill_prefetch_0 (); put_long(dsta,src); }}}}endlabel2585: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_3000_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3008_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3010_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2588; } {{ uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2588: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3018_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2589; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2589: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3020_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2590; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2590: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3028_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2591; } {{ uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2591: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3030_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2592; } {{ uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2592: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3038_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2593; } {{ uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2593: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3039_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2594; } {{ uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2594: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_303a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2595; } {{ uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2595: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_303b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2596; } {{ uae_s16 src = get_word(srca); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2596: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_303c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3040_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3048_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_3050_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2600; } {{ uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2600: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3058_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2601; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2601: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3060_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2602; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2602: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3068_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2603; } {{ uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2603: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3070_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2604; } {{ uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2604: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3078_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2605; } {{ uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2605: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3079_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2606; } {{ uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2606: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_307a_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2607; } {{ uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2607: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_307b_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2608; } {{ uae_s16 src = get_word(srca); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2608: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_307c_5)(uae_u32 opcode) /* MOVEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_u32 val = (uae_s32)(uae_s16)src; _68k_areg(dstreg) = (val); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3080_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2610; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}endlabel2610: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3088_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2611; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}endlabel2611: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_3090_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2612; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2612; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2612: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3098_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2613; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2613; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2613: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30a0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2614; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2614; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2614: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_30a8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2615; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2615; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2615: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30b0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2616; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2616; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2616: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30b8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2617; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2617; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2617: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30b9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2618; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2618; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2618: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_30ba_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2619; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2619; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2619: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30bb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2620; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2620; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2620: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30bc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2621; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2621: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2622; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}endlabel2622: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_30c8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2623; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}endlabel2623: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_30d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2624; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2624; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2624: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2625; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2625; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2625: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_30e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2626; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2626; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2626: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_30e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2627; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2627; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2627: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2628; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2628; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2628: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30f8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2629; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2629; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2629: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30f9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2630; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2630; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2630: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_30fa_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2631; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2631; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2631: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_30fb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2632; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2632; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2632: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_30fc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2633; } { _68k_areg(dstreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2633: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3100_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2634; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}endlabel2634: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3108_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2635; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}endlabel2635: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_3110_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2636; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2636; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2636: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3118_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2637; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2637; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2637: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3120_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2638; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2638; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}}endlabel2638: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3128_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2639; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2639; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2639: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3130_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2640; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2640; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2640: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_3138_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2641; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2641; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2641: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3139_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2642; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2642; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2642: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_313a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2643; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2643; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2643: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_313b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2644; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2644; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2644: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_313c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2645; } { _68k_areg(dstreg) = dsta; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2645: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3140_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2646; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2646: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3148_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2647; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2647: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_3150_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2648; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2648; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2648: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3158_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2649; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2649; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2649: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3160_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2650; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2650; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2650: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3168_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2651; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2651; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2651: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_3170_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2652; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2652; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2652: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_3178_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2653; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2653; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2653: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_3179_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2654; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2654; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2654: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_317a_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2655; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2655; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2655: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_317b_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2656; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2656; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2656: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_317c_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2657; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2657: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_3180_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2658; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2658: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3188_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2659; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2659: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_3190_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2660; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2660; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2660: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_3198_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2661; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2661; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2661: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31a0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2662; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2662; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2662: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31a8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2663; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2663; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2663: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31b0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2664; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2664; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2664: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31b8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2665; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2665; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2665: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31b9_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2666; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(6)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2666; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2666: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_31ba_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2667; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2667; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2667: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31bb_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2668; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2668; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2668: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31bc_5)(uae_u32 opcode) /* MOVE */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2669; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2669: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2670; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2670: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_31c8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2671; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2671: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_31d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2672; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2672; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2672: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_31d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2673; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2673; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2673: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_31e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2674; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2674; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2674: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_31e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2675; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2675; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2675: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2676; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2676; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2676: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31f8_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2677; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2677; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2677: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31f9_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2678; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2678; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2678: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_31fa_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2679; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2679; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2679: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_31fb_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2680; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2680; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2680: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_31fc_5)(uae_u32 opcode) /* MOVE */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2681; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2681: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_33c0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2682; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2682: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_33c8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_areg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2683; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2683: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_33d0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2684; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2684; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2684: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_33d8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2685; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2685; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2685: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_33e0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2686; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2686; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2686: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_33e8_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2687; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2687; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2687: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_33f0_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2688; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2688; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2688: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_33f8_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2689; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2689; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2689: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_33f9_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2690; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong_prefetch(6); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 10; Exception(3, 0); goto endlabel2690; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(10); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2690: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_33fa_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2691; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2691; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2691: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_33fb_5)(uae_u32 opcode) /* MOVE */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2692; } {{ uae_s16 src = get_word(srca); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2692; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}}}endlabel2692: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_33fc_5)(uae_u32 opcode) /* MOVE */ { {{ uae_s16 src = get_iword_prefetch(2); { uaecptr dsta = get_ilong_prefetch(4); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2693; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(8); fill_prefetch_0 (); put_word(dsta,src); }}}}endlabel2693: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4000_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((newv) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4010_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,newv); }}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4018_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,newv); }}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4020_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,newv); }}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4028_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,newv); }}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4030_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,newv); }}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4038_5)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,newv); }}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4039_5)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,newv); }}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4040_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((newv) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4050_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2703; } {{ uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,newv); }}}}}}endlabel2703: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4058_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2704; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,newv); }}}}}}endlabel2704: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4060_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2705; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,newv); }}}}}}endlabel2705: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4068_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2706; } {{ uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,newv); }}}}}}endlabel2706: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4070_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2707; } {{ uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,newv); }}}}}}endlabel2707: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4078_5)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2708; } {{ uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,newv); }}}}}}endlabel2708: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4079_5)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2709; } {{ uae_s16 src = get_word(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(srca,newv); }}}}}}endlabel2709: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4080_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(srcreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4090_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2711; } {{ uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,newv); }}}}}}endlabel2711: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4098_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2712; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,newv); }}}}}}endlabel2712: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_40a0_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2713; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,newv); }}}}}}endlabel2713: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_40a8_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2714; } {{ uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,newv); }}}}}}endlabel2714: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_40b0_5)(uae_u32 opcode) /* NEGX */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2715; } {{ uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,newv); }}}}}}endlabel2715: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_40b8_5)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2716; } {{ uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,newv); }}}}}}endlabel2716: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_40b9_5)(uae_u32 opcode) /* NEGX */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2717; } {{ uae_s32 src = get_long(srca); { uae_u32 newv = 0 - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(srca,newv); }}}}}}endlabel2717: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_40c0_5)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ MakeSR(); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((uae_regs.sr) & 0xffff); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_40d0_5)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2719; } { MakeSR(); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,uae_regs.sr); }}}endlabel2719: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40d8_5)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2720; } { _68k_areg(srcreg) += 2; MakeSR(); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,uae_regs.sr); }}}endlabel2720: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_40e0_5)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2721; } { _68k_areg(srcreg) = srca; MakeSR(); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,uae_regs.sr); }}}endlabel2721: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_40e8_5)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2722; } { MakeSR(); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,uae_regs.sr); }}}endlabel2722: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_40f0_5)(uae_u32 opcode) /* MVSR2 */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2723; } { MakeSR(); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,uae_regs.sr); }}}endlabel2723: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_40f8_5)(uae_u32 opcode) /* MVSR2 */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2724; } { MakeSR(); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,uae_regs.sr); }}}endlabel2724: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_40f9_5)(uae_u32 opcode) /* MVSR2 */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2725; } { MakeSR(); m68k_incpc(6); fill_prefetch_0 (); put_word(srca,uae_regs.sr); }}}endlabel2725: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4100_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2726; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2726; } }}}m68k_incpc(2); fill_prefetch_2 (); endlabel2726: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4110_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2727; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2727; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2727; } }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2727: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4118_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2728; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2728; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2728; } }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2728: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4120_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2729; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2729; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2729; } }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2729: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4128_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2730; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2730; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2730; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2730: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4130_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2731; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2731; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2731; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2731: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4138_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2732; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2732; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2732; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2732: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4139_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2733; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2733; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2733; } }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2733: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_413a_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2734; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2734; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2734; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2734: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_413b_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2735; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2735; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2735; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2735: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_413c_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2736; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2736; } }}}m68k_incpc(6); fill_prefetch_0 (); endlabel2736: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4180_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2737; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2737; } }}}m68k_incpc(2); fill_prefetch_2 (); endlabel2737: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4190_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2738; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2738; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2738; } }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2738: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4198_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2739; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2739; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2739; } }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2739: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41a0_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2740; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2740; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2740; } }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2740: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_41a8_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2741; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2741; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2741; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2741: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41b0_5)(uae_u32 opcode) /* CHK */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2742; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2742; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2742; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2742: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_41b8_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2743; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2743; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2743; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2743: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41b9_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2744; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2744; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2744; } }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2744: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_41ba_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2745; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2745; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2745; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2745: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41bb_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2746; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2746; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2746; } }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2746: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_41bc_5)(uae_u32 opcode) /* CHK */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); if ((uae_s32)dst < 0) { SET_NFLG (1); Exception(6,oldpc); goto endlabel2747; } else if (dst > src) { SET_NFLG (0); Exception(6,oldpc); goto endlabel2747; } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel2747: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41d0_5)(uae_u32 opcode) /* LEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_41e8_5)(uae_u32 opcode) /* LEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41f0_5)(uae_u32 opcode) /* LEA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); fill_prefetch_0 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_41f8_5)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41f9_5)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_41fa_5)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_41fb_5)(uae_u32 opcode) /* LEA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { _68k_areg(dstreg) = (srca); }}}m68k_incpc(4); fill_prefetch_0 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4200_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((0) & 0xff); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4210_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,0); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4218_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,0); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4220_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,0); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4228_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,0); }}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4230_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,0); }}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4238_5)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,0); }}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4239_5)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = get_ilong_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(0)) == 0); SET_NFLG (((uae_s8)(0)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,0); }}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4240_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((0) & 0xffff); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4250_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2764; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,0); }}}endlabel2764: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4258_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2765; } { _68k_areg(srcreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,0); }}}endlabel2765: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4260_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2766; } { _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,0); }}}endlabel2766: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4268_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2767; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,0); }}}endlabel2767: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4270_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2768; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,0); }}}endlabel2768: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4278_5)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2769; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,0); }}}endlabel2769: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4279_5)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2770; } { CLEAR_CZNV; SET_ZFLG (((uae_s16)(0)) == 0); SET_NFLG (((uae_s16)(0)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(srca,0); }}}endlabel2770: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4280_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); _68k_dreg(srcreg) = (0); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4290_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2772; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,0); }}}endlabel2772: ; return 3072; } #endif #ifdef PART_4 unsigned long REGPARAM2 CPUFUNC(op_4298_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2773; } { _68k_areg(srcreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,0); }}}endlabel2773: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_42a0_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2774; } { _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,0); }}}endlabel2774: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_42a8_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2775; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,0); }}}endlabel2775: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_42b0_5)(uae_u32 opcode) /* CLR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2776; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,0); }}}endlabel2776: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_42b8_5)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2777; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,0); }}}endlabel2777: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_42b9_5)(uae_u32 opcode) /* CLR */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2778; } { CLEAR_CZNV; SET_ZFLG (((uae_s32)(0)) == 0); SET_NFLG (((uae_s32)(0)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(srca,0); }}}endlabel2778: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4400_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((dst) & 0xff); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4410_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,dst); }}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4418_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,dst); }}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4420_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,dst); }}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4428_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,dst); }}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4430_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,dst); }}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4438_5)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,dst); }}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4439_5)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); {{uae_u32 dst = ((uae_s8)(0)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(0)) < 0; int flgn = ((uae_s8)(dst)) < 0; SET_ZFLG (((uae_s8)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,dst); }}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4440_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((dst) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4450_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2788; } {{ uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,dst); }}}}}}}endlabel2788: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4458_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2789; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,dst); }}}}}}}endlabel2789: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4460_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2790; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,dst); }}}}}}}endlabel2790: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4468_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2791; } {{ uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,dst); }}}}}}}endlabel2791: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4470_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2792; } {{ uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,dst); }}}}}}}endlabel2792: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4478_5)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2793; } {{ uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,dst); }}}}}}}endlabel2793: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4479_5)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2794; } {{ uae_s16 src = get_word(srca); {{uae_u32 dst = ((uae_s16)(0)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(0)) < 0; int flgn = ((uae_s16)(dst)) < 0; SET_ZFLG (((uae_s16)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(srca,dst); }}}}}}}endlabel2794: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4480_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(srcreg) = (dst); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4490_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2796; } {{ uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,dst); }}}}}}}endlabel2796: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4498_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2797; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,dst); }}}}}}}endlabel2797: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_44a0_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2798; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,dst); }}}}}}}endlabel2798: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_44a8_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2799; } {{ uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,dst); }}}}}}}endlabel2799: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_44b0_5)(uae_u32 opcode) /* NEG */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2800; } {{ uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,dst); }}}}}}}endlabel2800: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_44b8_5)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2801; } {{ uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,dst); }}}}}}}endlabel2801: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_44b9_5)(uae_u32 opcode) /* NEG */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2802; } {{ uae_s32 src = get_long(srca); {{uae_u32 dst = ((uae_s32)(0)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(0)) < 0; int flgn = ((uae_s32)(dst)) < 0; SET_ZFLG (((uae_s32)(dst)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(0))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(srca,dst); }}}}}}}endlabel2802: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_44c0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_44d0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2804; } {{ uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2804: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_44d8_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2805; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2805: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_44e0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2806; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2806: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_44e8_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2807; } {{ uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2807: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_44f0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2808; } {{ uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2808: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_44f8_5)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2809; } {{ uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2809: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_44f9_5)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2810; } {{ uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2810: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_44fa_5)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2811; } {{ uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2811: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_44fb_5)(uae_u32 opcode) /* MV2SR */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2812; } {{ uae_s16 src = get_word(srca); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2812: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_44fc_5)(uae_u32 opcode) /* MV2SR */ { {{ uae_s16 src = get_iword_prefetch(2); MakeSR(); uae_regs.sr &= 0xFF00; uae_regs.sr |= src & 0xFF; MakeFromSR(); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4600_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((dst) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4610_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4618_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,dst); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4620_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,dst); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4628_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4630_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,dst); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4638_5)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,dst); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4639_5)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s8)(dst)) == 0); SET_NFLG (((uae_s8)(dst)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,dst); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4640_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((dst) & 0xffff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4650_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2823; } {{ uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,dst); }}}}}endlabel2823: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4658_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2824; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,dst); }}}}}endlabel2824: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4660_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2825; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(srca,dst); }}}}}endlabel2825: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4668_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2826; } {{ uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,dst); }}}}}endlabel2826: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4670_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2827; } {{ uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,dst); }}}}}endlabel2827: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4678_5)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2828; } {{ uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(srca,dst); }}}}}endlabel2828: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4679_5)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2829; } {{ uae_s16 src = get_word(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(srca,dst); }}}}}endlabel2829: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4680_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4690_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2831; } {{ uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,dst); }}}}}endlabel2831: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4698_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2832; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,dst); }}}}}endlabel2832: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_46a0_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2833; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(srca,dst); }}}}}endlabel2833: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_46a8_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2834; } {{ uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,dst); }}}}}endlabel2834: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_46b0_5)(uae_u32 opcode) /* NOT */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2835; } {{ uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,dst); }}}}}endlabel2835: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_46b8_5)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2836; } {{ uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(srca,dst); }}}}}endlabel2836: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_46b9_5)(uae_u32 opcode) /* NOT */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2837; } {{ uae_s32 src = get_long(srca); { uae_u32 dst = ~src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(srca,dst); }}}}}endlabel2837: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_46c0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2838; } {{ uae_s16 src = _68k_dreg(srcreg); uae_regs.sr = src; MakeFromSR(); }}}m68k_incpc(2); fill_prefetch_2 (); endlabel2838: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_46d0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2839; } {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2839; } {{ uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2839: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_46d8_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2840; } {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2840; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2840: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_46e0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2841; } {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2841; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2841: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_46e8_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2842; } {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2842; } {{ uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2842: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_46f0_5)(uae_u32 opcode) /* MV2SR */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2843; } {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2843; } {{ uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2843: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_46f8_5)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2844; } {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2844; } {{ uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2844: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_46f9_5)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2845; } {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2845; } {{ uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2845: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_46fa_5)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2846; } {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2846; } {{ uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2846: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_46fb_5)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2847; } {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2847; } {{ uae_s16 src = get_word(srca); uae_regs.sr = src; MakeFromSR(); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2847: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_46fc_5)(uae_u32 opcode) /* MV2SR */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2848; } {{ uae_s16 src = get_iword_prefetch(2); uae_regs.sr = src; MakeFromSR(); }}}m68k_incpc(4); fill_prefetch_0 (); endlabel2848: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4800_5)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((newv) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4810_5)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,newv); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4818_5)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,newv); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4820_5)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,newv); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4828_5)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,newv); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4830_5)(uae_u32 opcode) /* NBCD */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,newv); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4838_5)(uae_u32 opcode) /* NBCD */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,newv); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4839_5)(uae_u32 opcode) /* NBCD */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_u16 newv_lo = - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = - (src & 0xF0); uae_u16 newv; int cflg; if (newv_lo > 9) { newv_lo -= 6; } newv = newv_hi + newv_lo; cflg = (newv & 0x1F0) > 0x90; if (cflg) newv -= 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,newv); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4840_5)(uae_u32 opcode) /* SWAP */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = ((src >> 16)&0xFFFF) | ((src&0xFFFF)<<16); CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4850_5)(uae_u32 opcode) /* PEA */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uaecptr dsta = _68k_areg(7) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2858; } { _68k_areg(7) = dsta; m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,srca); }}}}endlabel2858: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4868_5)(uae_u32 opcode) /* PEA */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uaecptr dsta = _68k_areg(7) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2859; } { _68k_areg(7) = dsta; m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,srca); }}}}endlabel2859: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4870_5)(uae_u32 opcode) /* PEA */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uaecptr dsta = _68k_areg(7) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2860; } { _68k_areg(7) = dsta; m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,srca); }}}}endlabel2860: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4878_5)(uae_u32 opcode) /* PEA */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uaecptr dsta = _68k_areg(7) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2861; } { _68k_areg(7) = dsta; m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,srca); }}}}endlabel2861: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4879_5)(uae_u32 opcode) /* PEA */ { {{ uaecptr srca = get_ilong_prefetch(2); { uaecptr dsta = _68k_areg(7) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2862; } { _68k_areg(7) = dsta; m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,srca); }}}}endlabel2862: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_487a_5)(uae_u32 opcode) /* PEA */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uaecptr dsta = _68k_areg(7) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2863; } { _68k_areg(7) = dsta; m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,srca); }}}}endlabel2863: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_487b_5)(uae_u32 opcode) /* PEA */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uaecptr dsta = _68k_areg(7) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2864; } { _68k_areg(7) = dsta; m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,srca); }}}}endlabel2864: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4880_5)(uae_u32 opcode) /* EXT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u16 dst = (uae_s16)(uae_s8)src; CLEAR_CZNV; SET_ZFLG (((uae_s16)(dst)) == 0); SET_NFLG (((uae_s16)(dst)) < 0); _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | ((dst) & 0xffff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4890_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = _68k_areg(dstreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2866; } {m68k_incpc(4); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}}endlabel2866: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_48a0_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = _68k_areg(dstreg) - 0; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2867; } {m68k_incpc(4); fill_prefetch_0 (); { uae_u16 amask = mask & 0xff, dmask = (mask >> 8) & 0xff; while (amask) { srca -= 2; put_word(srca, _68k_areg(movem_index2[amask])); amask = movem_next[amask]; } while (dmask) { srca -= 2; put_word(srca, _68k_dreg(movem_index2[dmask])); dmask = movem_next[dmask]; } _68k_areg(dstreg) = srca; }}}}endlabel2867: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_48a8_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2868; } {m68k_incpc(6); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}}endlabel2868: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48b0_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2869; } {m68k_incpc(6); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}}endlabel2869: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_48b8_5)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2870; } {m68k_incpc(6); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}}endlabel2870: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48b9_5)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = get_ilong_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2871; } {m68k_incpc(8); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_word(srca, _68k_dreg(movem_index1[dmask])); srca += 2; dmask = movem_next[dmask]; } while (amask) { put_word(srca, _68k_areg(movem_index1[amask])); srca += 2; amask = movem_next[amask]; } }}}}endlabel2871: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_48c0_5)(uae_u32 opcode) /* EXT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_48d0_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = _68k_areg(dstreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2873; } {m68k_incpc(4); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}}endlabel2873: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_48e0_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = _68k_areg(dstreg) - 0; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2874; } {m68k_incpc(4); fill_prefetch_0 (); { uae_u16 amask = mask & 0xff, dmask = (mask >> 8) & 0xff; while (amask) { srca -= 4; put_long(srca, _68k_areg(movem_index2[amask])); amask = movem_next[amask]; } while (dmask) { srca -= 4; put_long(srca, _68k_dreg(movem_index2[dmask])); dmask = movem_next[dmask]; } _68k_areg(dstreg) = srca; }}}}endlabel2874: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_48e8_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2875; } {m68k_incpc(6); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}}endlabel2875: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48f0_5)(uae_u32 opcode) /* MVMLE */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2876; } {m68k_incpc(6); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}}endlabel2876: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_48f8_5)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2877; } {m68k_incpc(6); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}}endlabel2877: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_48f9_5)(uae_u32 opcode) /* MVMLE */ { { uae_u16 mask = get_iword_prefetch(2); { uaecptr srca = get_ilong_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2878; } {m68k_incpc(8); fill_prefetch_0 (); { uae_u16 dmask = mask & 0xff, amask = (mask >> 8) & 0xff; while (dmask) { put_long(srca, _68k_dreg(movem_index1[dmask])); srca += 4; dmask = movem_next[dmask]; } while (amask) { put_long(srca, _68k_areg(movem_index1[amask])); srca += 4; amask = movem_next[amask]; } }}}}endlabel2878: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_49c0_5)(uae_u32 opcode) /* EXT */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uae_u32 dst = (uae_s32)(uae_s8)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(dst)) == 0); SET_NFLG (((uae_s32)(dst)) < 0); _68k_dreg(srcreg) = (dst); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a00_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a10_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a18_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a20_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4a28_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a30_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a38_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a39_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4a3a_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a3b_5)(uae_u32 opcode) /* TST */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a3c_5)(uae_u32 opcode) /* TST */ { {{ uae_s8 src = get_ibyte_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a40_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a48_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a50_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2893; } {{ uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2893: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a58_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2894; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2894: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a60_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2895; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2895: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4a68_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2896; } {{ uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2896: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a70_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2897; } {{ uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2897: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a78_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2898; } {{ uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2898: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a79_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2899; } {{ uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2899: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4a7a_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2900; } {{ uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2900: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a7b_5)(uae_u32 opcode) /* TST */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2901; } {{ uae_s16 src = get_word(srca); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2901: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4a7c_5)(uae_u32 opcode) /* TST */ { {{ uae_s16 src = get_iword_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); }}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4a80_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a88_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4a90_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2905; } {{ uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2905: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4a98_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2906; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2906: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4aa0_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2907; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2907: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4aa8_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2908; } {{ uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2908: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4ab0_5)(uae_u32 opcode) /* TST */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2909; } {{ uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2909: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4ab8_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2910; } {{ uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2910: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4ab9_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2911; } {{ uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2911: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4aba_5)(uae_u32 opcode) /* TST */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2912; } {{ uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2912: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4abb_5)(uae_u32 opcode) /* TST */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2913; } {{ uae_s32 src = get_long(srca); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2913: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4abc_5)(uae_u32 opcode) /* TST */ { {{ uae_s32 src = get_ilong_prefetch(2); CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); }}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4ac0_5)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uae_s8 src = _68k_dreg(srcreg); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((src) & 0xff); }}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4ad0_5)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,src); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4ad8_5)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,src); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4ae0_5)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,src); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4ae8_5)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,src); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4af0_5)(uae_u32 opcode) /* TAS */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,src); }}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4af8_5)(uae_u32 opcode) /* TAS */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,src); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4af9_5)(uae_u32 opcode) /* TAS */ { {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); src |= 0x80; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,src); }}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_4c90_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2923; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2923: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4c98_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2924; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } _68k_areg(dstreg) = srca; }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2924: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ca8_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2925; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2925: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cb0_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2926; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2926: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cb8_5)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2927; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2927: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cb9_5)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_ilong_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2928; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2928: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4cba_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 2; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = m68k_getpc () + 4; srca += (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2929; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2929: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cbb_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 3; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr tmppc = m68k_getpc() + 4; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(4)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2930; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = (uae_s32)(uae_s16)get_word(srca); srca += 2; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2930: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cd0_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2931; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2931: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4cd8_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2932; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } _68k_areg(dstreg) = srca; }}}}m68k_incpc(4); fill_prefetch_0 (); endlabel2932: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ce8_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2933; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2933: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cf0_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = opcode & 7; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(4)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2934; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2934: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4cf8_5)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2935; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2935: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cf9_5)(uae_u32 opcode) /* MVMEL */ { { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = get_ilong_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 8; Exception(3, 0); goto endlabel2936; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}m68k_incpc(8); fill_prefetch_0 (); endlabel2936: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4cfa_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 2; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr srca = m68k_getpc () + 4; srca += (uae_s32)(uae_s16)get_iword_prefetch(4); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2937; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2937: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4cfb_5)(uae_u32 opcode) /* MVMEL */ { uae_u32 dstreg = 3; { uae_u16 mask = get_iword_prefetch(2); unsigned int dmask = mask & 0xff, amask = (mask >> 8) & 0xff; { uaecptr tmppc = m68k_getpc() + 4; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(4)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2938; } {{ while (dmask) { _68k_dreg(movem_index1[dmask]) = get_long(srca); srca += 4; dmask = movem_next[dmask]; } while (amask) { _68k_areg(movem_index1[amask]) = get_long(srca); srca += 4; amask = movem_next[amask]; } }}}}m68k_incpc(6); fill_prefetch_0 (); endlabel2938: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_4e40_5)(uae_u32 opcode) /* TRAP */ { uae_u32 srcreg = (opcode & 15); {{ uae_u32 src = srcreg; m68k_incpc(2); fill_prefetch_2 (); Exception(src+32,0); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e50_5)(uae_u32 opcode) /* LINK */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr olda = _68k_areg(7) - 4; if ((olda & 1) != 0) { last_fault_for_exception_3 = olda; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2940; } { _68k_areg(7) = olda; { uae_s32 src = _68k_areg(srcreg); m68k_incpc(2); fill_prefetch_2 (); put_long(olda,src); _68k_areg(srcreg) = (_68k_areg(7)); { uae_s16 offs = get_iword_prefetch(0); _68k_areg(7) += offs; }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2940: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_4e58_5)(uae_u32 opcode) /* UNLK */ { uae_u32 srcreg = (opcode & 7); {{ uae_s32 src = _68k_areg(srcreg); _68k_areg(7) = src; { uaecptr olda = _68k_areg(7); if ((olda & 1) != 0) { last_fault_for_exception_3 = olda; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2941; } {{ uae_s32 old = get_long(olda); _68k_areg(7) += 4; _68k_areg(srcreg) = (old); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel2941: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4e60_5)(uae_u32 opcode) /* MVR2USP */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2942; } {{ uae_s32 src = _68k_areg(srcreg); uae_regs.usp = src; }}}m68k_incpc(2); fill_prefetch_2 (); endlabel2942: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e68_5)(uae_u32 opcode) /* MVUSP2R */ { uae_u32 srcreg = (opcode & 7); {if (!uae_regs.s) { Exception(8,0); goto endlabel2943; } {{ _68k_areg(srcreg) = (uae_regs.usp); }}}m68k_incpc(2); fill_prefetch_2 (); endlabel2943: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e70_5)(uae_u32 opcode) /* RESET */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2944; } { customreset(); }}m68k_incpc(2); fill_prefetch_2 (); endlabel2944: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e71_5)(uae_u32 opcode) /* NOP */ { {}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e72_5)(uae_u32 opcode) /* STOP */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2946; } {{ uae_s16 src = get_iword_prefetch(2); uae_regs.sr = src; MakeFromSR(); m68k_setstopped(1); }}}m68k_incpc(4); fill_prefetch_0 (); endlabel2946: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4e73_5)(uae_u32 opcode) /* RTE */ { {if (!uae_regs.s) { Exception(8,0); goto endlabel2947; } {{ uaecptr sra = _68k_areg(7); if ((sra & 1) != 0) { last_fault_for_exception_3 = sra; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2947; } {{ uae_s16 sr = get_word(sra); _68k_areg(7) += 2; { uaecptr pca = _68k_areg(7); if ((pca & 1) != 0) { last_fault_for_exception_3 = pca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2947; } {{ uae_s32 pc = get_long(pca); _68k_areg(7) += 4; uae_regs.sr = sr; m68k_setpc_rte(pc); fill_prefetch_0 (); MakeFromSR(); }}}}}}}}endlabel2947: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4e74_5)(uae_u32 opcode) /* RTD */ { { compiler_flush_jsr_stack(); { uaecptr pca = _68k_areg(7); if ((pca & 1) != 0) { last_fault_for_exception_3 = pca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2948; } {{ uae_s32 pc = get_long(pca); _68k_areg(7) += 4; { uae_s16 offs = get_iword_prefetch(2); _68k_areg(7) += offs; m68k_setpc_rte(pc); fill_prefetch_0 (); }}}}}endlabel2948: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4e75_5)(uae_u32 opcode) /* RTS */ { { m68k_do_rts(); fill_prefetch_0 (); }return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e76_5)(uae_u32 opcode) /* TRAPV */ { {m68k_incpc(2); fill_prefetch_2 (); if (GET_VFLG) { Exception(7,m68k_getpc()); goto endlabel2950; } }endlabel2950: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4e77_5)(uae_u32 opcode) /* RTR */ { { compiler_flush_jsr_stack(); MakeSR(); { uaecptr sra = _68k_areg(7); if ((sra & 1) != 0) { last_fault_for_exception_3 = sra; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2951; } {{ uae_s16 sr = get_word(sra); _68k_areg(7) += 2; { uaecptr pca = _68k_areg(7); if ((pca & 1) != 0) { last_fault_for_exception_3 = pca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2951; } {{ uae_s32 pc = get_long(pca); _68k_areg(7) += 4; uae_regs.sr &= 0xFF00; sr &= 0xFF; uae_regs.sr |= sr; m68k_setpc(pc); fill_prefetch_0 (); MakeFromSR(); }}}}}}}endlabel2951: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_4e90_5)(uae_u32 opcode) /* JSR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); m68k_do_jsr(m68k_getpc() + 2, srca); fill_prefetch_0 (); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4ea8_5)(uae_u32 opcode) /* JSR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); m68k_do_jsr(m68k_getpc() + 4, srca); fill_prefetch_0 (); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4eb0_5)(uae_u32 opcode) /* JSR */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); m68k_do_jsr(m68k_getpc() + 4, srca); fill_prefetch_0 (); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4eb8_5)(uae_u32 opcode) /* JSR */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); m68k_do_jsr(m68k_getpc() + 4, srca); fill_prefetch_0 (); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4eb9_5)(uae_u32 opcode) /* JSR */ { {{ uaecptr srca = get_ilong_prefetch(2); m68k_do_jsr(m68k_getpc() + 6, srca); fill_prefetch_0 (); }}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4eba_5)(uae_u32 opcode) /* JSR */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); m68k_do_jsr(m68k_getpc() + 4, srca); fill_prefetch_0 (); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ebb_5)(uae_u32 opcode) /* JSR */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); m68k_do_jsr(m68k_getpc() + 4, srca); fill_prefetch_0 (); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4ed0_5)(uae_u32 opcode) /* JMP */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); m68k_setpc(srca); fill_prefetch_0 (); }}return 1024; } unsigned long REGPARAM2 CPUFUNC(op_4ee8_5)(uae_u32 opcode) /* JMP */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); m68k_setpc(srca); fill_prefetch_0 (); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ef0_5)(uae_u32 opcode) /* JMP */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); m68k_setpc(srca); fill_prefetch_0 (); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_4ef8_5)(uae_u32 opcode) /* JMP */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); m68k_setpc(srca); fill_prefetch_0 (); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4ef9_5)(uae_u32 opcode) /* JMP */ { {{ uaecptr srca = get_ilong_prefetch(2); m68k_setpc(srca); fill_prefetch_0 (); }}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_4efa_5)(uae_u32 opcode) /* JMP */ { {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); m68k_setpc(srca); fill_prefetch_0 (); }}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_4efb_5)(uae_u32 opcode) /* JMP */ { {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); m68k_setpc(srca); fill_prefetch_0 (); }}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5000_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5010_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5018_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5020_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5028_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5030_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5038_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } #endif #ifdef PART_5 unsigned long REGPARAM2 CPUFUNC(op_5039_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5040_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5048_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5050_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2976; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel2976: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5058_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2977; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel2977: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5060_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2978; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel2978: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5068_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2979; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2979: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5070_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2980; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2980: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5078_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2981; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2981: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5079_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2982; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel2982: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5080_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5088_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5090_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2985; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel2985: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5098_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2986; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel2986: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_50a0_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel2987; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel2987: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_50a8_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2988; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2988: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_50b0_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2989; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2989: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_50b8_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel2990; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2990: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_50b9_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel2991; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel2991: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_50c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(0) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_50c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(0)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel2993; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel2993: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_50d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(0) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_50d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(0) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_50e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(0) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_50e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(0) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_50f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(0) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_50f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(0) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_50f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(0) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5100_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5110_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5118_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5120_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5128_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5130_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5138_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5139_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5140_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5148_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5150_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3011; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3011: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5158_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3012; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3012: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5160_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3013; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3013: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5168_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3014; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3014: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5170_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3015; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3015: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_5178_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3016; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3016: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5179_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3017; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3017: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5180_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5188_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5190_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3020; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3020: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_5198_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3021; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3021: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_51a0_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3022; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3022: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_51a8_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3023; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3023: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_51b0_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 src = srcreg; { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3024; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3024: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_51b8_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3025; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3025: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_51b9_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; {{ uae_u32 src = srcreg; { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3026; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3026: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_51c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(1) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_51c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(1)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3028; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3028: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_51d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(1) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_51d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(1) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_51e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(1) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_51e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(1) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_51f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(1) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_51f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(1) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_51f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(1) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_52c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(2) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_52c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(2)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3037; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3037: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_52d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(2) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_52d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(2) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_52e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(2) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_52e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(2) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_52f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(2) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_52f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(2) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_52f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(2) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_53c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(3) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_53c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(3)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3046; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3046: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_53d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(3) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_53d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(3) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_53e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(3) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_53e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(3) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_53f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(3) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_53f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(3) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_53f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(3) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_54c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(4) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_54c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(4)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3055; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3055: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_54d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(4) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_54d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(4) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_54e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(4) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_54e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(4) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_54f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(4) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_54f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(4) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_54f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(4) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_55c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(5) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_55c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(5)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3064; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3064: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_55d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(5) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_55d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(5) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_55e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(5) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_55e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(5) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_55f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(5) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_55f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(5) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_55f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(5) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_56c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(6) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_56c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(6)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3073; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3073: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_56d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(6) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_56d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(6) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_56e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(6) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_56e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(6) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_56f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(6) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_56f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(6) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_56f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(6) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_57c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(7) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_57c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(7)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3082; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3082: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_57d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(7) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_57d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(7) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_57e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(7) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_57e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(7) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_57f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(7) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_57f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(7) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_57f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(7) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_58c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(8) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_58c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(8)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3091; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3091: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_58d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(8) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_58d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(8) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_58e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(8) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_58e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(8) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_58f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(8) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_58f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(8) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_58f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(8) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_59c0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(9) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_59c8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(9)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3100; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3100: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_59d0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(9) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_59d8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(9) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_59e0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(9) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_59e8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(9) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_59f0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(9) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_59f8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(9) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_59f9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(9) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5ac0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(10) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5ac8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(10)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3109; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3109: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ad0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(10) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ad8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(10) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ae0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(10) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5ae8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(10) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5af0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(10) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5af8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(10) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5af9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(10) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5bc0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(11) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5bc8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(11)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3118; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3118: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5bd0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(11) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5bd8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(11) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5be0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(11) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5be8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(11) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5bf0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(11) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5bf8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(11) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5bf9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(11) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5cc0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(12) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5cc8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(12)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3127; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3127: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5cd0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(12) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5cd8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(12) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ce0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(12) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5ce8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(12) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5cf0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(12) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5cf8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(12) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5cf9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(12) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5dc0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(13) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5dc8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(13)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3136; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3136: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5dd0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(13) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5dd8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(13) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5de0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(13) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5de8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(13) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5df0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(13) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5df8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(13) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5df9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(13) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5ec0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(14) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5ec8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(14)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3145; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3145: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ed0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(14) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ed8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(14) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5ee0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(14) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5ee8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(14) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ef0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(14) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5ef8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(14) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ef9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(14) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_5fc0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{{ int val = cctrue(15) ? 0xff : 0; _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xff) | ((val) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_5fc8_5)(uae_u32 opcode) /* DBcc */ { uae_u32 srcreg = (opcode & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 offs = get_iword_prefetch(2); if (!cctrue(15)) { _68k_dreg(srcreg) = (_68k_dreg(srcreg) & ~0xffff) | (((src-1)) & 0xffff); if (src) { if (offs & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)offs + 2; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3154; } m68k_incpc((uae_s32)offs + 2); fill_prefetch_0 (); return 6 * CYCLE_UNIT; } } }}}m68k_incpc(4); fill_prefetch_0 (); endlabel3154: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5fd0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); { int val = cctrue(15) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5fd8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg); _68k_areg(srcreg) += areg_byteinc[srcreg]; { int val = cctrue(15) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2048; } unsigned long REGPARAM2 CPUFUNC(op_5fe0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; _68k_areg(srcreg) = srca; { int val = cctrue(15) ? 0xff : 0; m68k_incpc(2); fill_prefetch_2 (); put_byte(srca,val); }}}return 2560; } unsigned long REGPARAM2 CPUFUNC(op_5fe8_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(15) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_5ff0_5)(uae_u32 opcode) /* Scc */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { int val = cctrue(15) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_5ff8_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { int val = cctrue(15) ? 0xff : 0; m68k_incpc(4); fill_prefetch_0 (); put_byte(srca,val); }}}return 3072; } #endif #ifdef PART_6 unsigned long REGPARAM2 CPUFUNC(op_5ff9_5)(uae_u32 opcode) /* Scc */ { {{ uaecptr srca = get_ilong_prefetch(2); { int val = cctrue(15) ? 0xff : 0; m68k_incpc(6); fill_prefetch_0 (); put_byte(srca,val); }}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_6000_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(0)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3162; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3162: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6001_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(0)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3163; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3163: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_60ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(0)) goto endlabel3164; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3164; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(0)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3164; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3164: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6100_5)(uae_u32 opcode) /* BSR */ { {{ uae_s16 src = get_iword_prefetch(2); uae_s32 s = (uae_s32)src + 2; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + s; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3165; } m68k_do_bsr(m68k_getpc() + 4, s); fill_prefetch_0 (); }}endlabel3165: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6101_5)(uae_u32 opcode) /* BSR */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; uae_s32 s = (uae_s32)src + 2; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + s; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3166; } m68k_do_bsr(m68k_getpc() + 2, s); fill_prefetch_0 (); }}endlabel3166: ; return 1024; } unsigned long REGPARAM2 CPUFUNC(op_61ff_5)(uae_u32 opcode) /* BSR */ { {{ uae_s32 src = get_ilong_prefetch(2); uae_s32 s = (uae_s32)src + 2; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + s; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3167; } m68k_do_bsr(m68k_getpc() + 6, s); fill_prefetch_0 (); }}endlabel3167: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6200_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(2)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3168; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3168: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6201_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(2)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3169; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3169: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_62ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(2)) goto endlabel3170; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3170; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(2)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3170; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3170: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6300_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(3)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3171; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3171: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6301_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(3)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3172; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3172: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_63ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(3)) goto endlabel3173; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3173; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(3)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3173; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3173: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6400_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(4)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3174; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3174: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6401_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(4)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3175; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3175: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_64ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(4)) goto endlabel3176; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3176; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(4)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3176; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3176: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6500_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(5)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3177; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3177: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6501_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(5)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3178; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3178: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_65ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(5)) goto endlabel3179; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3179; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(5)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3179; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3179: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6600_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(6)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3180; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3180: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6601_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(6)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3181; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3181: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_66ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(6)) goto endlabel3182; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3182; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(6)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3182; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3182: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6700_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(7)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3183; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3183: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6701_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(7)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3184; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3184: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_67ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(7)) goto endlabel3185; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3185; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(7)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3185; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3185: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6800_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(8)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3186; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3186: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6801_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(8)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3187; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3187: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_68ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(8)) goto endlabel3188; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3188; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(8)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3188; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3188: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6900_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(9)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3189; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3189: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6901_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(9)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3190; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3190: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_69ff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(9)) goto endlabel3191; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3191; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(9)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3191; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3191: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6a00_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(10)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3192; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3192: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6a01_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(10)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3193; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3193: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6aff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(10)) goto endlabel3194; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3194; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(10)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3194; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3194: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6b00_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(11)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3195; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3195: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6b01_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(11)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3196; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3196: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6bff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(11)) goto endlabel3197; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3197; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(11)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3197; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3197: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6c00_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(12)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3198; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3198: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6c01_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(12)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3199; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3199: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6cff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(12)) goto endlabel3200; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3200; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(12)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3200; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3200: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6d00_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(13)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3201; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3201: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6d01_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(13)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3202; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3202: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6dff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(13)) goto endlabel3203; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3203; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(13)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3203; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3203: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6e00_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(14)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3204; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3204: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6e01_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(14)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3205; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3205: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6eff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(14)) goto endlabel3206; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3206; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(14)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3206; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3206: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6f00_5)(uae_u32 opcode) /* Bcc */ { {{ uae_s16 src = get_iword_prefetch(2); if (!cctrue(15)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3207; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(4); fill_prefetch_0 (); endlabel3207: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_6f01_5)(uae_u32 opcode) /* Bcc */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); {{ uae_u32 src = srcreg; if (!cctrue(15)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3208; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(2); fill_prefetch_2 (); endlabel3208: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_6fff_5)(uae_u32 opcode) /* Bcc */ { { m68k_incpc(2); if (!cctrue(15)) goto endlabel3209; last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 1; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3209; { uae_s32 src = get_ilong_prefetch(2); if (!cctrue(15)) goto didnt_jump; if (src & 1) { last_addr_for_exception_3 = m68k_getpc() + 2; last_fault_for_exception_3 = m68k_getpc() + 2 + (uae_s32)src; last_op_for_exception_3 = opcode; Exception(3,0); goto endlabel3209; } m68k_incpc ((uae_s32)src + 2); fill_prefetch_0 (); return 5 * CYCLE_UNIT; didnt_jump:; }}m68k_incpc(6); fill_prefetch_0 (); endlabel3209: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_7000_5)(uae_u32 opcode) /* MOVE */ { uae_u32 srcreg = (uae_s32)(uae_s8)(opcode & 255); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_u32 src = srcreg; { CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8000_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8010_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8018_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8020_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_8028_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8030_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8038_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8039_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_803a_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_803b_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_803c_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8040_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8050_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3223; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3223: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8058_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3224; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3224: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8060_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3225; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3225: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_8068_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3226; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3226: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8070_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3227; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3227: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8078_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3228; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3228: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8079_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3229; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3229: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_807a_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3230; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3230: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_807b_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3231; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3231: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_807c_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_8080_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8090_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3234; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3234: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8098_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3235; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3235: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_80a0_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3236; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3236: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_80a8_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3237; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3237: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_80b0_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3238; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3238: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_80b8_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3239; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3239: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_80b9_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3240; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3240: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_80ba_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3241; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3241: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_80bb_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3242; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3242: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_80bc_5)(uae_u32 opcode) /* OR */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_80c0_5)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3244; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel3244: ; return 35840; } unsigned long REGPARAM2 CPUFUNC(op_80d0_5)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3245; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3245; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3245: ; return 36864; } unsigned long REGPARAM2 CPUFUNC(op_80d8_5)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3246; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3246; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3246: ; return 36864; } unsigned long REGPARAM2 CPUFUNC(op_80e0_5)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3247; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3247; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3247: ; return 37376; } unsigned long REGPARAM2 CPUFUNC(op_80e8_5)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3248; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3248; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3248: ; return 37888; } unsigned long REGPARAM2 CPUFUNC(op_80f0_5)(uae_u32 opcode) /* DIVU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3249; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3249; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3249: ; return 38400; } unsigned long REGPARAM2 CPUFUNC(op_80f8_5)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3250; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3250; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3250: ; return 37888; } unsigned long REGPARAM2 CPUFUNC(op_80f9_5)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3251; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(6); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3251; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3251: ; return 38912; } unsigned long REGPARAM2 CPUFUNC(op_80fa_5)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3252; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3252; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3252: ; return 37888; } unsigned long REGPARAM2 CPUFUNC(op_80fb_5)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3253; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3253; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3253: ; return 38400; } unsigned long REGPARAM2 CPUFUNC(op_80fc_5)(uae_u32 opcode) /* DIVU */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception (5, oldpc); goto endlabel3254; } else { uae_u32 newv = (uae_u32)dst / (uae_u32)(uae_u16)src; uae_u32 rem = (uae_u32)dst % (uae_u32)(uae_u16)src; if (newv > 0xffff) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel3254: ; return 36864; } unsigned long REGPARAM2 CPUFUNC(op_8100_5)(uae_u32 opcode) /* SBCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u16 newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (dst & 0xF0) - (src & 0xF0); uae_u16 newv, tmp_newv; int bcd = 0; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo & 0xF0) { newv -= 6; bcd = 6; }; if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; } SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_8108_5)(uae_u32 opcode) /* SBCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u16 newv_lo = (dst & 0xF) - (src & 0xF) - (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (dst & 0xF0) - (src & 0xF0); uae_u16 newv, tmp_newv; int bcd = 0; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo & 0xF0) { newv -= 6; bcd = 6; }; if ((((dst & 0xFF) - (src & 0xFF) - (GET_XFLG ? 1 : 0)) & 0x100) > 0xFF) { newv -= 0x60; } SET_CFLG ((((dst & 0xFF) - (src & 0xFF) - bcd - (GET_XFLG ? 1 : 0)) & 0x300) > 0xFF); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) != 0 && (newv & 0x80) == 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8110_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8118_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8120_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8128_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8130_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8138_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8139_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8150_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3264; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3264: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8158_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3265; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3265: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_8160_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3266; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3266: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_8168_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3267; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3267: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8170_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3268; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3268: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_8178_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3269; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3269: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_8179_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3270; } {{ uae_s16 dst = get_word(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3270: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8190_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3271; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3271: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_8198_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3272; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3272: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_81a0_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3273; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3273: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_81a8_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3274; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3274: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_81b0_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3275; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3275: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_81b8_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3276; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3276: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_81b9_5)(uae_u32 opcode) /* OR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3277; } {{ uae_s32 dst = get_long(dsta); src |= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3277: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_81c0_5)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3278; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel3278: ; return 40448; } unsigned long REGPARAM2 CPUFUNC(op_81d0_5)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3279; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3279; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3279: ; return 41472; } unsigned long REGPARAM2 CPUFUNC(op_81d8_5)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3280; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3280; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3280: ; return 41472; } unsigned long REGPARAM2 CPUFUNC(op_81e0_5)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3281; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(2); fill_prefetch_2 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3281; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3281: ; return 41984; } unsigned long REGPARAM2 CPUFUNC(op_81e8_5)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3282; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3282; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3282: ; return 42496; } unsigned long REGPARAM2 CPUFUNC(op_81f0_5)(uae_u32 opcode) /* DIVS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3283; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3283; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3283: ; return 43008; } unsigned long REGPARAM2 CPUFUNC(op_81f8_5)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3284; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3284; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3284: ; return 42496; } unsigned long REGPARAM2 CPUFUNC(op_81f9_5)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3285; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(6); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3285; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3285: ; return 43520; } unsigned long REGPARAM2 CPUFUNC(op_81fa_5)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3286; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3286; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3286: ; return 42496; } unsigned long REGPARAM2 CPUFUNC(op_81fb_5)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3287; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3287; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}}}endlabel3287: ; return 43008; } unsigned long REGPARAM2 CPUFUNC(op_81fc_5)(uae_u32 opcode) /* DIVS */ { uae_u32 dstreg = (opcode >> 9) & 7; { uaecptr oldpc = m68k_getpc(); { uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); m68k_incpc(4); fill_prefetch_0 (); if (src == 0) { SET_VFLG (0); Exception(5,oldpc); goto endlabel3288; } else { uae_s32 newv = (uae_s32)dst / (uae_s32)(uae_s16)src; uae_u16 rem = (uae_s32)dst % (uae_s32)(uae_s16)src; if ((newv & 0xffff8000) != 0 && (newv & 0xffff8000) != 0xffff8000) { SET_VFLG (1); SET_NFLG (1); SET_CFLG (0); } else { if (((uae_s16)rem < 0) != ((uae_s32)dst < 0)) rem = -rem; CLEAR_CZNV; SET_ZFLG (((uae_s16)(newv)) == 0); SET_NFLG (((uae_s16)(newv)) < 0); newv = (newv & 0xffff) | ((uae_u32)rem << 16); _68k_dreg(dstreg) = (newv); } } }}}endlabel3288: ; return 41472; } unsigned long REGPARAM2 CPUFUNC(op_9000_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9010_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9018_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9020_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_9028_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9030_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9038_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9039_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_903a_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_903b_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_903c_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9040_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9048_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9050_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3302; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3302: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9058_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3303; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3303: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9060_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3304; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3304: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_9068_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3305; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3305: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9070_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3306; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3306: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9078_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3307; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3307: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9079_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3308; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3308: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_907a_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3309; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3309: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_907b_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3310; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3310: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_907c_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9080_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9088_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9090_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3314; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3314: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9098_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3315; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3315: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90a0_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3316; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3316: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90a8_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3317; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3317: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90b0_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3318; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3318: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_90b8_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3319; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3319: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90b9_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3320; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3320: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_90ba_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3321; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3321: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90bb_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3322; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3322: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_90bc_5)(uae_u32 opcode) /* SUB */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90c0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_90c8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_90d0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3326; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3326: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_90d8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3327; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3327: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_90e0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3328; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3328: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_90e8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3329; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3329: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90f0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3330; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3330: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90f8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3331; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3331: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90f9_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3332; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3332: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_90fa_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3333; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3333: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_90fb_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3334; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3334: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_90fc_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_9100_5)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9108_5)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9110_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9118_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9120_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9128_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9130_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_9138_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9139_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9140_5)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9148_5)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3346; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3346; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}}endlabel3346: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9150_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3347; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3347: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9158_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3348; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3348: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_9160_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3349; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3349: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_9168_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3350; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3350: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9170_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3351; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3351: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_9178_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3352; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3352: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_9179_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3353; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3353: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9180_5)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_9188_5)(uae_u32 opcode) /* SUBX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3355; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3355; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst - src - (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgo) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgn) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}}endlabel3355: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_9190_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3356; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3356: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_9198_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3357; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3357: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_91a0_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3358; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3358: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_91a8_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3359; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3359: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_91b0_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3360; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3360: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_91b8_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3361; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3361: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_91b9_5)(uae_u32 opcode) /* SUB */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3362; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgo) & (flgn ^ flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3362: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_91c0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_91c8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_91d0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3365; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3365: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_91d8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3366; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3366: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_91e0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3367; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3367: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_91e8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3368; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3368: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_91f0_5)(uae_u32 opcode) /* SUBA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3369; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3369: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_91f8_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3370; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3370: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_91f9_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3371; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3371: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_91fa_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3372; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3372: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_91fb_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3373; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3373: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_91fc_5)(uae_u32 opcode) /* SUBA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst - src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b000_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b010_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b018_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b020_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_b028_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b030_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b038_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b039_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b03a_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b03b_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b03c_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b040_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } #endif #ifdef PART_7 unsigned long REGPARAM2 CPUFUNC(op_b048_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b050_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3388; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3388: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b058_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3389; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3389: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b060_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3390; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3390: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_b068_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3391; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3391: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b070_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3392; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3392: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b078_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3393; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3393: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b079_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3394; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3394: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b07a_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3395; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3395: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b07b_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3396; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3396: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b07c_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b080_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b088_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b090_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3400; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3400: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b098_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3401; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3401: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0a0_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3402; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3402: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0a8_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3403; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3403: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0b0_5)(uae_u32 opcode) /* CMP */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3404; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3404: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b0b8_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3405; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3405: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0b9_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3406; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3406: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b0ba_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3407; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3407: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0bb_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3408; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3408: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b0bc_5)(uae_u32 opcode) /* CMP */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0c0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b0c8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b0d0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3412; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3412: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b0d8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3413; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3413: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b0e0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3414; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3414: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_b0e8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3415; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3415: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0f0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3416; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3416: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0f8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3417; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3417: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0f9_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3418; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3418: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b0fa_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3419; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3419: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b0fb_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3420; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3420: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b0fc_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_b100_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b108_5)(uae_u32 opcode) /* CMPM */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) - ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u8)(src)) > ((uae_u8)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b110_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b118_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b120_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b128_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b130_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b138_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b139_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b140_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b148_5)(uae_u32 opcode) /* CMPM */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3432; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3432; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) - ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u16)(src)) > ((uae_u16)(dst))); SET_NFLG (flgn != 0); }}}}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3432: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b150_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3433; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3433: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b158_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3434; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3434: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b160_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3435; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3435: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b168_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3436; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3436: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b170_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3437; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3437: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b178_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3438; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3438: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b179_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3439; } {{ uae_s16 dst = get_word(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3439: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b180_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b188_5)(uae_u32 opcode) /* CMPM */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3441; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3441; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3441: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b190_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3442; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3442: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b198_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3443; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3443: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b1a0_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3444; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3444: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_b1a8_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3445; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3445: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_b1b0_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3446; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3446: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_b1b8_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3447; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3447: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_b1b9_5)(uae_u32 opcode) /* EOR */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3448; } {{ uae_s32 dst = get_long(dsta); src ^= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3448: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_b1c0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b1c8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_b1d0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3451; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3451: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b1d8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3452; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3452: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_b1e0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3453; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3453: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_b1e8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3454; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3454: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b1f0_5)(uae_u32 opcode) /* CMPA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3455; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3455: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b1f8_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3456; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3456: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b1f9_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3457; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3457: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_b1fa_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3458; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3458: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_b1fb_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3459; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3459: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_b1fc_5)(uae_u32 opcode) /* CMPA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_areg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) - ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs != flgo) && (flgn != flgo)); SET_CFLG (((uae_u32)(src)) > ((uae_u32)(dst))); SET_NFLG (flgn != 0); }}}}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c000_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c010_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c018_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c020_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_c028_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c030_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c038_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c039_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c03a_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c03b_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c03c_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((src) & 0xff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c040_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c050_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3473; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3473: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c058_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3474; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3474: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c060_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3475; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3475: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_c068_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3476; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3476: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c070_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3477; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3477: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c078_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3478; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3478: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c079_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3479; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3479: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c07a_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3480; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3480: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c07b_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3481; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3481: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c07c_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((src) & 0xffff); }}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_c080_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c090_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3484; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3484: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c098_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3485; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3485: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c0a0_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3486; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3486: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c0a8_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3487; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3487: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c0b0_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3488; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3488: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c0b8_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3489; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3489: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c0b9_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3490; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3490: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c0ba_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3491; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3491: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c0bb_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3492; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3492: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c0bc_5)(uae_u32 opcode) /* AND */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); _68k_dreg(dstreg) = (src); }}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c0c0_5)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 17920; } unsigned long REGPARAM2 CPUFUNC(op_c0d0_5)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3495; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3495: ; return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c0d8_5)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3496; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3496: ; return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c0e0_5)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3497; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3497: ; return 19456; } unsigned long REGPARAM2 CPUFUNC(op_c0e8_5)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3498; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3498: ; return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c0f0_5)(uae_u32 opcode) /* MULU */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3499; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3499: ; return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c0f8_5)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3500; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3500: ; return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c0f9_5)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3501; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3501: ; return 20992; } unsigned long REGPARAM2 CPUFUNC(op_c0fa_5)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3502; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3502: ; return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c0fb_5)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3503; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3503: ; return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c0fc_5)(uae_u32 opcode) /* MULU */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_u32)(uae_u16)dst * (uae_u32)(uae_u16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(4); fill_prefetch_0 (); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c100_5)(uae_u32 opcode) /* ABCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u16 newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (src & 0xF0) + (dst & 0xF0); uae_u16 newv, tmp_newv; int cflg; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo > 9) { newv += 6; } cflg = (newv & 0x3F0) > 0x90; if (cflg) newv += 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c108_5)(uae_u32 opcode) /* ABCD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u16 newv_lo = (src & 0xF) + (dst & 0xF) + (GET_XFLG ? 1 : 0); uae_u16 newv_hi = (src & 0xF0) + (dst & 0xF0); uae_u16 newv, tmp_newv; int cflg; newv = tmp_newv = newv_hi + newv_lo; if (newv_lo > 9) { newv += 6; } cflg = (newv & 0x3F0) > 0x90; if (cflg) newv += 0x60; SET_CFLG (cflg); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); SET_VFLG ((tmp_newv & 0x80) == 0 && (newv & 0x80) != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c110_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c118_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c120_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,src); }}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c128_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c130_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c138_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c139_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s8)(src)) == 0); SET_NFLG (((uae_s8)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,src); }}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c140_5)(uae_u32 opcode) /* EXG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); _68k_dreg(srcreg) = (dst); _68k_dreg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c148_5)(uae_u32 opcode) /* EXG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); _68k_areg(srcreg) = (dst); _68k_areg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c150_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3516; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3516: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c158_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3517; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3517: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_c160_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3518; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,src); }}}}}endlabel3518: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_c168_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3519; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3519: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c170_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3520; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3520: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_c178_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3521; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3521: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_c179_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3522; } {{ uae_s16 dst = get_word(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s16)(src)) == 0); SET_NFLG (((uae_s16)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,src); }}}}}endlabel3522: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c188_5)(uae_u32 opcode) /* EXG */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); _68k_dreg(srcreg) = (dst); _68k_areg(dstreg) = (src); }}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_c190_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3524; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3524: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c198_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3525; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3525: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_c1a0_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3526; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,src); }}}}}endlabel3526: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_c1a8_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3527; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3527: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_c1b0_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3528; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3528: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_c1b8_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3529; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3529: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_c1b9_5)(uae_u32 opcode) /* AND */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3530; } {{ uae_s32 dst = get_long(dsta); src &= dst; CLEAR_CZNV; SET_ZFLG (((uae_s32)(src)) == 0); SET_NFLG (((uae_s32)(src)) < 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,src); }}}}}endlabel3530: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_c1c0_5)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 17920; } unsigned long REGPARAM2 CPUFUNC(op_c1d0_5)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3532; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3532: ; return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c1d8_5)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3533; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3533: ; return 18944; } unsigned long REGPARAM2 CPUFUNC(op_c1e0_5)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3534; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3534: ; return 19456; } unsigned long REGPARAM2 CPUFUNC(op_c1e8_5)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3535; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3535: ; return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c1f0_5)(uae_u32 opcode) /* MULS */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3536; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3536: ; return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c1f8_5)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3537; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3537: ; return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c1f9_5)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3538; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3538: ; return 20992; } unsigned long REGPARAM2 CPUFUNC(op_c1fa_5)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3539; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3539: ; return 19968; } unsigned long REGPARAM2 CPUFUNC(op_c1fb_5)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3540; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3540: ; return 20480; } unsigned long REGPARAM2 CPUFUNC(op_c1fc_5)(uae_u32 opcode) /* MULS */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = (uae_s32)(uae_s16)dst * (uae_s32)(uae_s16)src; CLEAR_CZNV; SET_ZFLG (((uae_s32)(newv)) == 0); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}m68k_incpc(4); fill_prefetch_0 (); return 18944; } unsigned long REGPARAM2 CPUFUNC(op_d000_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d010_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d018_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); { uae_s8 src = get_byte(srca); _68k_areg(srcreg) += areg_byteinc[srcreg]; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d020_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(2); fill_prefetch_2 (); return 2560; } unsigned long REGPARAM2 CPUFUNC(op_d028_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d030_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d038_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d039_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(6); fill_prefetch_0 (); return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d03a_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d03b_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); { uae_s8 src = get_byte(srca); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}}m68k_incpc(4); fill_prefetch_0 (); return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d03c_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = get_ibyte_prefetch(2); { uae_s8 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d040_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d048_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d050_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3555; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3555: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d058_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3556; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3556: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d060_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3557; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3557: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_d068_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3558; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3558: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d070_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3559; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3559: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d078_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3560; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3560: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d079_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3561; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3561: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d07a_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3562; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3562: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d07b_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3563; } {{ uae_s16 src = get_word(srca); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3563: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d07c_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s16 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d080_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d088_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d090_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3567; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3567: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d098_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3568; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3568: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0a0_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3569; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3569: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0a8_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3570; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3570: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0b0_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3571; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3571: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d0b8_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3572; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3572: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0b9_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3573; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3573: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d0ba_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3574; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3574: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0bb_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3575; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3575: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d0bc_5)(uae_u32 opcode) /* ADD */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_dreg(dstreg); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); _68k_dreg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0c0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d0c8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d0d0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3579; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3579: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d0d8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3580; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) += 2; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3580: ; return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d0e0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3581; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3581: ; return 2560; } unsigned long REGPARAM2 CPUFUNC(op_d0e8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3582; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3582: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0f0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3583; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3583: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0f8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3584; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3584: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0f9_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3585; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3585: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d0fa_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3586; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3586: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d0fb_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3587; } {{ uae_s16 src = get_word(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3587: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d0fc_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = get_iword_prefetch(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(4); fill_prefetch_0 (); return 2048; } unsigned long REGPARAM2 CPUFUNC(op_d100_5)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uae_s8 dst = _68k_dreg(dstreg); { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((newv) & 0xff); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d108_5)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - areg_byteinc[srcreg]; { uae_s8 src = get_byte(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s8)(newv)) == 0)); SET_NFLG (((uae_s8)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d110_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d118_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) += areg_byteinc[dstreg]; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d120_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - areg_byteinc[dstreg]; { uae_s8 dst = get_byte(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_byte(dsta,newv); }}}}}}}return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d128_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d130_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d138_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d139_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s8 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); { uae_s8 dst = get_byte(dsta); {{uae_u32 newv = ((uae_s8)(dst)) + ((uae_s8)(src)); { int flgs = ((uae_s8)(src)) < 0; int flgo = ((uae_s8)(dst)) < 0; int flgn = ((uae_s8)(newv)) < 0; SET_ZFLG (((uae_s8)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u8)(~dst)) < ((uae_u8)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_byte(dsta,newv); }}}}}}}return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d140_5)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uae_s16 dst = _68k_dreg(dstreg); { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((newv) & 0xffff); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d148_5)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 2; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3599; } {{ uae_s16 src = get_word(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3599; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s16)(newv)) == 0)); SET_NFLG (((uae_s16)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}}endlabel3599: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d150_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3600; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3600: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d158_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3601; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) += 2; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3601: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d160_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 2; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3602; } {{ uae_s16 dst = get_word(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_word(dsta,newv); }}}}}}}}endlabel3602: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d168_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3603; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3603: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d170_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3604; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3604: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d178_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3605; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3605: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d179_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s16 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3606; } {{ uae_s16 dst = get_word(dsta); {{uae_u32 newv = ((uae_s16)(dst)) + ((uae_s16)(src)); { int flgs = ((uae_s16)(src)) < 0; int flgo = ((uae_s16)(dst)) < 0; int flgn = ((uae_s16)(newv)) < 0; SET_ZFLG (((uae_s16)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u16)(~dst)) < ((uae_u16)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_word(dsta,newv); }}}}}}}}endlabel3606: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d180_5)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_dreg(dstreg); { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); _68k_dreg(dstreg) = (newv); }}}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d188_5)(uae_u32 opcode) /* ADDX */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3608; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3608; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; { uae_u32 newv = dst + src + (GET_XFLG ? 1 : 0); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (flgs ^ ((flgs ^ flgo) & (flgo ^ flgn))); COPY_CARRY; SET_ZFLG (GET_ZFLG & (((uae_s32)(newv)) == 0)); SET_NFLG (((uae_s32)(newv)) < 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}}endlabel3608: ; return 8192; } unsigned long REGPARAM2 CPUFUNC(op_d190_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3609; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3609: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d198_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3610; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) += 4; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3610: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d1a0_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) - 4; if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3611; } {{ uae_s32 dst = get_long(dsta); _68k_areg(dstreg) = dsta; {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(2); fill_prefetch_2 (); put_long(dsta,newv); }}}}}}}}endlabel3611: ; return 5632; } unsigned long REGPARAM2 CPUFUNC(op_d1a8_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = _68k_areg(dstreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3612; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3612: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_d1b0_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_disp_ea_000(_68k_areg(dstreg), get_iword_prefetch(2)); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3613; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3613: ; return 6656; } unsigned long REGPARAM2 CPUFUNC(op_d1b8_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3614; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(4); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3614: ; return 6144; } unsigned long REGPARAM2 CPUFUNC(op_d1b9_5)(uae_u32 opcode) /* ADD */ { uae_u32 srcreg = ((opcode >> 9) & 7); {{ uae_s32 src = _68k_dreg(srcreg); { uaecptr dsta = get_ilong_prefetch(2); if ((dsta & 1) != 0) { last_fault_for_exception_3 = dsta; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3615; } {{ uae_s32 dst = get_long(dsta); {{uae_u32 newv = ((uae_s32)(dst)) + ((uae_s32)(src)); { int flgs = ((uae_s32)(src)) < 0; int flgo = ((uae_s32)(dst)) < 0; int flgn = ((uae_s32)(newv)) < 0; SET_ZFLG (((uae_s32)(newv)) == 0); SET_VFLG ((flgs ^ flgn) & (flgo ^ flgn)); SET_CFLG (((uae_u32)(~dst)) < ((uae_u32)(src))); COPY_CARRY; SET_NFLG (flgn != 0); m68k_incpc(6); fill_prefetch_0 (); put_long(dsta,newv); }}}}}}}}endlabel3615: ; return 7168; } unsigned long REGPARAM2 CPUFUNC(op_d1c0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_dreg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d1c8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = _68k_areg(srcreg); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_d1d0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3618; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3618: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_d1d8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3619; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) += 4; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3619: ; return 3072; } #endif #ifdef PART_8 unsigned long REGPARAM2 CPUFUNC(op_d1e0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) - 4; if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3620; } {{ uae_s32 src = get_long(srca); _68k_areg(srcreg) = srca; { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(2); fill_prefetch_2 (); endlabel3620: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_d1e8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3621; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3621: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d1f0_5)(uae_u32 opcode) /* ADDA */ { uae_u32 srcreg = (opcode & 7); uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3622; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3622: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d1f8_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3623; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3623: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d1f9_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = get_ilong_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3624; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(6); fill_prefetch_0 (); endlabel3624: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_d1fa_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr srca = m68k_getpc () + 2; srca += (uae_s32)(uae_s16)get_iword_prefetch(2); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3625; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3625: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_d1fb_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uaecptr tmppc = m68k_getpc() + 2; uaecptr srca = get_disp_ea_000(tmppc, get_iword_prefetch(2)); if ((srca & 1) != 0) { last_fault_for_exception_3 = srca; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3626; } {{ uae_s32 src = get_long(srca); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}}}m68k_incpc(4); fill_prefetch_0 (); endlabel3626: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_d1fc_5)(uae_u32 opcode) /* ADDA */ { uae_u32 dstreg = (opcode >> 9) & 7; {{ uae_s32 src = get_ilong_prefetch(2); { uae_s32 dst = _68k_areg(dstreg); { uae_u32 newv = dst + src; _68k_areg(dstreg) = (newv); }}}}m68k_incpc(6); fill_prefetch_0 (); return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e000_5)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; uae_u32 sign = (0x80 & val) >> 7; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { val = 0xff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xff << (8 - cnt)) & (uae_u32)-sign; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e008_5)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG ((cnt == 8) & (val >> 7)); COPY_CARRY; val = 0; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e010_5)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (7 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e018_5)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { uae_u32 hival; cnt &= 7; hival = val << (8 - cnt); val >>= cnt; val |= hival; val &= 0xff; SET_CFLG ((val & 0x80) >> 7); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e020_5)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; uae_u32 sign = (0x80 & val) >> 7; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { val = 0xff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xff << (8 - cnt)) & (uae_u32)-sign; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e028_5)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG ((cnt == 8) & (val >> 7)); COPY_CARRY; val = 0; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e030_5)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 36) cnt -= 36; if (cnt >= 18) cnt -= 18; if (cnt >= 9) cnt -= 9; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (7 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e038_5)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 hival; cnt &= 7; hival = val << (8 - cnt); val >>= cnt; val |= hival; val &= 0xff; SET_CFLG ((val & 0x80) >> 7); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e040_5)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; uae_u32 sign = (0x8000 & val) >> 15; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { val = 0xffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffff << (16 - cnt)) & (uae_u32)-sign; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e048_5)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG ((cnt == 16) & (val >> 15)); COPY_CARRY; val = 0; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e050_5)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (15 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e058_5)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { uae_u32 hival; cnt &= 15; hival = val << (16 - cnt); val >>= cnt; val |= hival; val &= 0xffff; SET_CFLG ((val & 0x8000) >> 15); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e060_5)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; uae_u32 sign = (0x8000 & val) >> 15; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { val = 0xffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffff << (16 - cnt)) & (uae_u32)-sign; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e068_5)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG ((cnt == 16) & (val >> 15)); COPY_CARRY; val = 0; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e070_5)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 34) cnt -= 34; if (cnt >= 17) cnt -= 17; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (15 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e078_5)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 hival; cnt &= 15; hival = val << (16 - cnt); val >>= cnt; val |= hival; val &= 0xffff; SET_CFLG ((val & 0x8000) >> 15); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e080_5)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; uae_u32 sign = (0x80000000 & val) >> 31; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { val = 0xffffffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffffffff << (32 - cnt)) & (uae_u32)-sign; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e088_5)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG ((cnt == 32) & (val >> 31)); COPY_CARRY; val = 0; } else { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e090_5)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (31 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e098_5)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { uae_u32 hival; cnt &= 31; hival = val << (32 - cnt); val >>= cnt; val |= hival; val &= 0xffffffff; SET_CFLG ((val & 0x80000000) >> 31); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0a0_5)(uae_u32 opcode) /* ASR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; uae_u32 sign = (0x80000000 & val) >> 31; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { val = 0xffffffff & (uae_u32)-sign; SET_CFLG (sign); COPY_CARRY; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; val |= (0xffffffff << (32 - cnt)) & (uae_u32)-sign; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0a8_5)(uae_u32 opcode) /* LSR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG ((cnt == 32) & (val >> 31)); COPY_CARRY; val = 0; } else if (cnt > 0) { val >>= cnt - 1; SET_CFLG (val & 1); COPY_CARRY; val >>= 1; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0b0_5)(uae_u32 opcode) /* ROXR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 33) cnt -= 33; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 hival = (val << 1) | GET_XFLG; hival <<= (31 - cnt); val >>= cnt; carry = val & 1; val >>= 1; val |= hival; SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0b8_5)(uae_u32 opcode) /* ROR */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 hival; cnt &= 31; hival = val << (32 - cnt); val >>= cnt; val |= hival; val &= 0xffffffff; SET_CFLG ((val & 0x80000000) >> 31); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e0d0_5)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3652; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3652: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e0d8_5)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3653; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3653: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e0e0_5)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3654; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3654: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e0e8_5)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3655; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3655: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e0f0_5)(uae_u32 opcode) /* ASRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3656; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3656: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e0f8_5)(uae_u32 opcode) /* ASRW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3657; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3657: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e0f9_5)(uae_u32 opcode) /* ASRW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3658; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 cflg = val & 1; val = (val >> 1) | sign; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (cflg); COPY_CARRY; m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3658: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e100_5)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_VFLG (val != 0); SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else { uae_u32 mask = (0xff << (7 - cnt)) & 0xff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e108_5)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else { val <<= (cnt - 1); SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e110_5)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 loval = val >> (7 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e118_5)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; { uae_u32 loval; cnt &= 7; loval = val >> (8 - cnt); val <<= cnt; val |= loval; val &= 0xff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e120_5)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_VFLG (val != 0); SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { uae_u32 mask = (0xff << (7 - cnt)) & 0xff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e128_5)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 8) { SET_CFLG (cnt == 8 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { val <<= (cnt - 1); SET_CFLG ((val & 0x80) >> 7); COPY_CARRY; val <<= 1; val &= 0xff; } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e130_5)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 36) cnt -= 36; if (cnt >= 18) cnt -= 18; if (cnt >= 9) cnt -= 9; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 loval = val >> (7 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e138_5)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s8 cnt = _68k_dreg(srcreg); { uae_s8 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u8)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 loval; cnt &= 7; loval = val >> (8 - cnt); val <<= cnt; val |= loval; val &= 0xff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s8)(val)) == 0); SET_NFLG (((uae_s8)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xff) | ((val) & 0xff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e140_5)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_VFLG (val != 0); SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else { uae_u32 mask = (0xffff << (15 - cnt)) & 0xffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e148_5)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else { val <<= (cnt - 1); SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e150_5)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 loval = val >> (15 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e158_5)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; { uae_u32 loval; cnt &= 15; loval = val >> (16 - cnt); val <<= cnt; val |= loval; val &= 0xffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e160_5)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_VFLG (val != 0); SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { uae_u32 mask = (0xffff << (15 - cnt)) & 0xffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e168_5)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 16) { SET_CFLG (cnt == 16 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { val <<= (cnt - 1); SET_CFLG ((val & 0x8000) >> 15); COPY_CARRY; val <<= 1; val &= 0xffff; } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e170_5)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt >= 34) cnt -= 34; if (cnt >= 17) cnt -= 17; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 loval = val >> (15 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e178_5)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s16 cnt = _68k_dreg(srcreg); { uae_s16 data = _68k_dreg(dstreg); { uae_u32 val = (uae_u16)data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 loval; cnt &= 15; loval = val >> (16 - cnt); val <<= cnt; val |= loval; val &= 0xffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); _68k_dreg(dstreg) = (_68k_dreg(dstreg) & ~0xffff) | ((val) & 0xffff); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e180_5)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_VFLG (val != 0); SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else { uae_u32 mask = (0xffffffff << (31 - cnt)) & 0xffffffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e188_5)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else { val <<= (cnt - 1); SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e190_5)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { cnt--; { uae_u32 carry; uae_u32 loval = val >> (31 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e198_5)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = imm8_table[((opcode >> 9) & 7)]; uae_u32 dstreg = opcode & 7; {{ uae_u32 cnt = srcreg; { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; { uae_u32 loval; cnt &= 31; loval = val >> (32 - cnt); val <<= cnt; val |= loval; val &= 0xffffffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1a0_5)(uae_u32 opcode) /* ASL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_VFLG (val != 0); SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { uae_u32 mask = (0xffffffff << (31 - cnt)) & 0xffffffff; SET_VFLG ((val & mask) != mask && (val & mask) != 0); val <<= cnt - 1; SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1a8_5)(uae_u32 opcode) /* LSL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 32) { SET_CFLG (cnt == 32 ? val & 1 : 0); COPY_CARRY; val = 0; } else if (cnt > 0) { val <<= (cnt - 1); SET_CFLG ((val & 0x80000000) >> 31); COPY_CARRY; val <<= 1; val &= 0xffffffff; } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1b0_5)(uae_u32 opcode) /* ROXL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt >= 33) cnt -= 33; if (cnt > 0) { cnt--; { uae_u32 carry; uae_u32 loval = val >> (31 - cnt); carry = loval & 1; val = (((val << 1) | GET_XFLG) << cnt) | (loval >> 1); SET_XFLG (carry); val &= 0xffffffff; } } SET_CFLG (GET_XFLG); SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1b8_5)(uae_u32 opcode) /* ROL */ { uae_u32 srcreg = ((opcode >> 9) & 7); uae_u32 dstreg = opcode & 7; {{ uae_s32 cnt = _68k_dreg(srcreg); { uae_s32 data = _68k_dreg(dstreg); { uae_u32 val = data; cnt &= 63; CLEAR_CZNV; if (cnt > 0) { uae_u32 loval; cnt &= 31; loval = val >> (32 - cnt); val <<= cnt; val |= loval; val &= 0xffffffff; SET_CFLG (val & 1); } SET_ZFLG (((uae_s32)(val)) == 0); SET_NFLG (((uae_s32)(val)) < 0); _68k_dreg(dstreg) = (val); }}}}m68k_incpc(2); fill_prefetch_2 (); return 1024; } unsigned long REGPARAM2 CPUFUNC(op_e1d0_5)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3683; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3683: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e1d8_5)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3684; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3684: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e1e0_5)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3685; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3685: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e1e8_5)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3686; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3686: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e1f0_5)(uae_u32 opcode) /* ASLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3687; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3687: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e1f8_5)(uae_u32 opcode) /* ASLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3688; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3688: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e1f9_5)(uae_u32 opcode) /* ASLW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3689; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 sign = 0x8000 & val; uae_u32 sign2; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); sign2 = 0x8000 & val; SET_CFLG (sign != 0); COPY_CARRY; SET_VFLG (GET_VFLG | (sign2 != sign)); m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3689: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e2d0_5)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3690; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3690: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e2d8_5)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3691; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3691: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e2e0_5)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3692; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3692: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e2e8_5)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3693; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3693: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e2f0_5)(uae_u32 opcode) /* LSRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3694; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3694: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e2f8_5)(uae_u32 opcode) /* LSRW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3695; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3695: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e2f9_5)(uae_u32 opcode) /* LSRW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3696; } {{ uae_s16 data = get_word(dataa); { uae_u32 val = (uae_u16)data; uae_u32 carry = val & 1; val >>= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3696: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e3d0_5)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3697; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3697: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e3d8_5)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3698; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3698: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e3e0_5)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3699; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3699: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e3e8_5)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3700; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3700: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e3f0_5)(uae_u32 opcode) /* LSLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3701; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3701: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e3f8_5)(uae_u32 opcode) /* LSLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3702; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3702: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e3f9_5)(uae_u32 opcode) /* LSLW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3703; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3703: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e4d0_5)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3704; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3704: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e4d8_5)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3705; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3705: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e4e0_5)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3706; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3706: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e4e8_5)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3707; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3707: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e4f0_5)(uae_u32 opcode) /* ROXRW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3708; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3708: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e4f8_5)(uae_u32 opcode) /* ROXRW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3709; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3709: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e4f9_5)(uae_u32 opcode) /* ROXRW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3710; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (GET_XFLG) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); COPY_CARRY; m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3710: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e5d0_5)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3711; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3711: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e5d8_5)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3712; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3712: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e5e0_5)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3713; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3713: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e5e8_5)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3714; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3714: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e5f0_5)(uae_u32 opcode) /* ROXLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3715; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3715: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e5f8_5)(uae_u32 opcode) /* ROXLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3716; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3716: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e5f9_5)(uae_u32 opcode) /* ROXLW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3717; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (GET_XFLG) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); COPY_CARRY; m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3717: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e6d0_5)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3718; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3718: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e6d8_5)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3719; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3719: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e6e0_5)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3720; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3720: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e6e8_5)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3721; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3721: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e6f0_5)(uae_u32 opcode) /* RORW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3722; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3722: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e6f8_5)(uae_u32 opcode) /* RORW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3723; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3723: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e6f9_5)(uae_u32 opcode) /* RORW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3724; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 1; val >>= 1; if (carry) val |= 0x8000; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry); m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3724: ; return 5120; } unsigned long REGPARAM2 CPUFUNC(op_e7d0_5)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3725; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3725: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e7d8_5)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3726; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) += 2; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3726: ; return 3072; } unsigned long REGPARAM2 CPUFUNC(op_e7e0_5)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) - 2; if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 2; Exception(3, 0); goto endlabel3727; } {{ uae_s16 data = get_word(dataa); _68k_areg(srcreg) = dataa; { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); m68k_incpc(2); fill_prefetch_2 (); put_word(dataa,val); }}}}}endlabel3727: ; return 3584; } unsigned long REGPARAM2 CPUFUNC(op_e7e8_5)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = _68k_areg(srcreg) + (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3728; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3728: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e7f0_5)(uae_u32 opcode) /* ROLW */ { uae_u32 srcreg = (opcode & 7); {{ uaecptr dataa = get_disp_ea_000(_68k_areg(srcreg), get_iword_prefetch(2)); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3729; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3729: ; return 4608; } unsigned long REGPARAM2 CPUFUNC(op_e7f8_5)(uae_u32 opcode) /* ROLW */ { {{ uaecptr dataa = (uae_s32)(uae_s16)get_iword_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 4; Exception(3, 0); goto endlabel3730; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); m68k_incpc(4); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3730: ; return 4096; } unsigned long REGPARAM2 CPUFUNC(op_e7f9_5)(uae_u32 opcode) /* ROLW */ { {{ uaecptr dataa = get_ilong_prefetch(2); if ((dataa & 1) != 0) { last_fault_for_exception_3 = dataa; last_op_for_exception_3 = opcode; last_addr_for_exception_3 = m68k_getpc() + 6; Exception(3, 0); goto endlabel3731; } {{ uae_s16 data = get_word(dataa); { uae_u16 val = data; uae_u32 carry = val & 0x8000; val <<= 1; if (carry) val |= 1; CLEAR_CZNV; SET_ZFLG (((uae_s16)(val)) == 0); SET_NFLG (((uae_s16)(val)) < 0); SET_CFLG (carry >> 15); m68k_incpc(6); fill_prefetch_0 (); put_word(dataa,val); }}}}}endlabel3731: ; return 5120; } #endif
630cc0c1baea0b31185758c15b3c990c068edef5
5713b91dc763d497d2139e7467a9711df17dd98b
/source/dll_resources.hpp
50c66e90db694e3c79d171b48e28c04070053fc2
[ "BSD-3-Clause", "MIT" ]
permissive
crosire/reshade
f627a3323debef97ecd02b5d0eeec2a0e0dc32b9
9782cea39bcd0d8ae37a38798737f235ce680a5b
refs/heads/main
2023-09-01T06:50:48.074855
2023-08-20T13:09:53
2023-08-20T13:09:53
61,246,596
3,611
694
BSD-3-Clause
2023-09-14T19:11:04
2016-06-15T23:02:16
C++
UTF-8
C++
false
false
417
hpp
dll_resources.hpp
/* * Copyright (C) 2014 Patrick Mours * SPDX-License-Identifier: BSD-3-Clause OR MIT */ #pragma once #include "resource.h" namespace reshade::resources { struct data_resource { size_t data_size; const void *data; }; /// <summary> /// Loads the raw data associated with the specified <paramref name="id"/> from the DLL resources. /// </summary> data_resource load_data_resource(unsigned short id); }
ad6da47d4df31abdcdb55c1c1d4caf720d33153f
be4737ec5e569506a3beea5cdfedafdd778e32e1
/gp.cpp
17dd7f1701f742882e6143a1bd44aa65e34943cc
[]
no_license
Samykakkar/DSA-practice
8fd49c690f9c6af56437cb09475e7796538df77b
d10938f34e9467688f178b6570ccc740d3cc4dff
refs/heads/master
2023-07-24T22:10:26.953125
2021-09-06T09:26:00
2021-09-06T09:26:00
392,998,137
0
1
null
2021-08-13T10:46:25
2021-08-05T10:21:28
C++
UTF-8
C++
false
false
275
cpp
gp.cpp
#include <iostream> #include <cmath> using namespace std; double GP(int a, int b, int N) { double r = ((double)b) / a; return (a * pow(r, N - 1)); } int main() { int a = 2; int b = 4; int N = 9; cout << "Nth term is" << GP(a, b, N); return 0; }
a2bdc28cd43475c999b14fa449c2bf6f9b75e978
6697cd726d4cd3744ae52a7d5618f4ad107befba
/CP/1500/product.cpp
1ce721f6a225ed7cd674406bef33653620ffefff
[]
no_license
Saifu0/Competitive-Programming
4385777115d5d83ba5140324c309db1e6c16f4af
ecc1c05f1a85636c57f7f6609dd6a002f220c0b0
refs/heads/master
2022-12-15T09:11:53.907652
2020-09-08T08:20:44
2020-09-08T08:20:44
293,743,953
0
0
null
null
null
null
UTF-8
C++
false
false
1,785
cpp
product.cpp
// ----- In the name of ALLAH, the Most Gracious, the Most Merciful ----- #include<bits/stdc++.h> using namespace std; #define NINJA ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define fo(i,n) for(int i=0;i<n;i++) #define Fo(i,k,n) for(int i=k;i<n;i++) #define for1(i,n) for(int i=1;i<=n;i++) #define dloop(i,n) for(int i=n-1;i>=0;i--) #define iii tuple<int,int,int> #define vi vector<int> #define ii pair<int,int> #define vii vector<ii> #define int long long #define pb push_back #define endl "\n" #define setbits __builtin_popcountll #define mp map<int,int> #define F first #define S second #define sz(v) (int)v.size() #define mod 1000000007 #define inf (int)1e18 int32_t main(){ NINJA; string a; string b; while(getline(cin,a)){ cin >> b; vector<string> s; if(b > a ) swap(a,b); int n = sz(a); int m = sz(b); reverse(a.begin(), a.end()); reverse(b.begin(), b.end()); int cnt =0 ; fo(i,m){ int carry = 0; int mul = b[i]-'0'; string st; fo(j,n){ int prod = a[j]-'0'; prod = prod*mul + carry; int rem = prod%10; if(j==n-1){ string sss = to_string(prod); reverse(sss.begin(), sss.end()); st += sss; } else st += rem + '0'; carry = prod/10; } reverse(st.begin(), st.end()); fo(i,cnt) st += '0'; s.pb(st); cnt++; } int carry = 0; int len = 0; for(auto i : s) len = max(len,sz(i)); // for(auto i : s) cout << i << endl; string ans = ""; for(int i=0;i<len;i++){ int val = 0; for(auto it : s){ if(sz(it)<=i) val = 0; else val += it[sz(it)-i-1] -'0'; } val += carry; if(i==len-1) ans += to_string(val); else ans += (val%10) + '0'; carry = val/10; } reverse(ans.begin(), ans.end()); cout << ans << endl; } return 0; }
3b8160b8d9ed016ae9d8b4ee9e1ae24f4680ec4d
cf3de7f4e07971357ae0b64d7fd8143d9640f0d4
/include/mutils/file/toml_utils.h
a56e167b9bc39160d3046c48b5b2f680c836e74e
[ "MIT" ]
permissive
ABelliqueux/mutils
2358291ed86515fd9cd1321e435ae6c4c57749fd
14c827c2408f30cfdeb86b039bcdc47e6bd631a0
refs/heads/master
2023-07-16T06:15:39.961085
2021-08-26T13:47:46
2021-08-26T13:47:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,712
h
toml_utils.h
#pragma once #include <map> #include <toml.hpp> #include <mutils/file/file.h> #include <mutils/math/math.h> namespace MUtils { std::map<std::string, const toml::table&> toml_get_subtables(const toml::value& loaded, std::string parentName, std::function<void(const std::string&, toml::table&)> cb); std::vector<float> toml_floats(const toml::value& val); std::vector<int> toml_ints(const toml::value& val); // TODO pass value and use that instead std::string toml_table_string(const toml::value& value, const char* pszTable, const char* pszEntry, const char* pszDefault = ""); NVec3f toml_get_vec3(const toml::table& table, const char* pszName, const NVec3f& def = NVec3f(0.0f)); NVec4f toml_get_vec4(const toml::table& table, const char* pszName, const NVec4f& def = NVec4f(0.0f)); NVec4i toml_get_vec4i(const toml::table& table, const char* pszName, const NVec4i& def = NVec4i(0)); const toml::table toml_get_table(const toml::table& table, const char* child); int toml_line(const toml::table& table, const char* pszName); toml::value toml_read(const fs::path& path); void toml_sanitize(std::string& text); int toml_extract_error_line(std::string err); template <typename T> void toml_set(toml::table& table, const char* pszName, const T& val = T{}) { auto itr = table.find(pszName); if (itr != table.end()) { //return toml::set<T>(itr->second, val); assert(!"Implement me!"); } table[pszName] = val; } template <typename T> T toml_get(const toml::table& table, const char* pszName, const T& val = T{}) { auto itr = table.find(pszName); if (itr != table.end()) { return toml::get<T>(itr->second); } return val; } } // namespace MUtils
c3b248e17c1f1b7fcfffcac85b5064ad994f3f2b
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Geometry/HcalTowerAlgo/test/HcalGeometryDump.cc
f08db74cd18f8d774bf1ea446940d15465b5e333
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
C++
false
false
2,936
cc
HcalGeometryDump.cc
#include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Geometry/CaloGeometry/interface/CaloGeometry.h" #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" #include "Geometry/HcalCommonData/interface/HcalDDDRecConstants.h" #include "Geometry/HcalTowerAlgo/interface/HcalGeometry.h" #include "Geometry/HcalTowerAlgo/interface/HcalFlexiHardcodeGeometryLoader.h" #include "Geometry/Records/interface/CaloGeometryRecord.h" #include <iostream> class HcalGeometryDump : public edm::one::EDAnalyzer<> { public: explicit HcalGeometryDump(const edm::ParameterSet&); ~HcalGeometryDump(void) override; void beginJob() override {} void analyze(edm::Event const& iEvent, edm::EventSetup const&) override; void endJob() override {} private: bool geomDB_; edm::ESGetToken<HcalDDDRecConstants, HcalRecNumberingRecord> tok_ddrec_; edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> tok_htopo_; edm::ESGetToken<CaloGeometry, CaloGeometryRecord> tok_geom_; }; HcalGeometryDump::HcalGeometryDump(const edm::ParameterSet& iConfig) { geomDB_ = iConfig.getParameter<bool>("GeometryFromDB"); tok_ddrec_ = esConsumes<HcalDDDRecConstants, HcalRecNumberingRecord>(); tok_htopo_ = esConsumes<HcalTopology, HcalRecNumberingRecord>(); tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>(); } HcalGeometryDump::~HcalGeometryDump(void) {} void HcalGeometryDump::analyze(const edm::Event& /*iEvent*/, const edm::EventSetup& iSetup) { const HcalDDDRecConstants hcons = iSetup.getData(tok_ddrec_); const HcalTopology topology = iSetup.getData(tok_htopo_); HcalGeometry* caloGeom(nullptr); if (geomDB_) { const CaloGeometry* geo = &iSetup.getData(tok_geom_); caloGeom = (HcalGeometry*)(geo->getSubdetectorGeometry(DetId::Hcal, HcalBarrel)); } else { HcalFlexiHardcodeGeometryLoader m_loader; caloGeom = (HcalGeometry*)(m_loader.load(topology, hcons)); } const std::vector<DetId>& ids = caloGeom->getValidDetIds(); for (int subdet = 1; subdet <= 4; ++subdet) { std::vector<unsigned int> detIds; for (auto id : ids) { DetId hid = id; if (hid.subdetId() == subdet) { detIds.emplace_back(hid.rawId()); } } edm::LogVerbatim("HCalGeom") << detIds.size() << " valid Ids for subdetector " << subdet; std::sort(detIds.begin(), detIds.end()); int counter = 0; for (std::vector<unsigned int>::const_iterator i = detIds.begin(); i != detIds.end(); ++i, ++counter) { HcalDetId hid = HcalDetId(*i); auto cell = caloGeom->getGeometry(*i); edm::LogVerbatim("HCalGeom") << hid << "\tCaloCellGeometry " << cell->getPosition() << "\tHcalGeometry " << caloGeom->getPosition(hid); } } } DEFINE_FWK_MODULE(HcalGeometryDump);
2c5ded5b8525c3b0c82259a269aa0b959a194682
6be31b4fa725b5b61c1efd6c8eaddcd78d4545a7
/Cpp0017_FunctionsSample2.cpp
2b9027f57edeebd94f3e2f5bc02539b12ac97b0e
[]
no_license
Abdullah06444/0017_FunctionsSample2
6f3343b430a5a814fe7c502295930bc3f6e90839
f076c1d5cb6ee8d2a5990c296de017e1a3cc39a2
refs/heads/master
2023-01-01T00:18:31.986245
2020-10-16T19:34:46
2020-10-16T19:34:46
296,702,456
0
0
null
null
null
null
UTF-8
C++
false
false
390
cpp
Cpp0017_FunctionsSample2.cpp
#include <iostream> using namespace std; int isPentagonal(int number) { int i; for (i = 0; number > 0; i++) number -= 1+3*i; if (number == 0) return 1; return 0; } int main() { int x; do { cin >> x; if (x > 0) if (isPentagonal(x)) cout << x << " is a pentagonal number" << endl; else cout << x << " is NOT a pentagonal number" << endl; } while (x > 0); }
ffdb01c32d312e1f8a53185f13739bc9f23244e4
f909905672dfb0983aefc7b12355161a2c008fc8
/DoorToNextLevel.h
f96ea25718f42924e43c0b99eef3206eb268f399
[]
no_license
LucasBarrot/ProjectQT
61a8e9091aa71d7601c26781b13c645df9f79763
ba0b45889b42bebe2a20e76c1daaf06b95e3f727
refs/heads/master
2022-12-20T13:28:16.922230
2020-09-25T16:54:00
2020-09-25T16:54:00
290,534,215
0
0
null
null
null
null
UTF-8
C++
false
false
201
h
DoorToNextLevel.h
#ifndef DOORTONEXTLEVEL_H #define DOORTONEXTLEVEL_H #include <QGraphicsPixmapItem> class DoorToNextLevel : public QGraphicsPixmapItem { public: DoorToNextLevel(); }; #endif // DOORTONEXTLEVEL_H
2e2696b0218b5ba743c7b16251781980dec46ea9
952b1cbc65d31598cd2f4a890fbdf7bf25790ebb
/src/main.cpp
7fc7ec34d91498a91268baf2e50b44713f56098f
[]
no_license
LazyRichard/Arduino-Glass-Armoire-Controller
843eaa9d6d935890d5e0ec66aa125051e87df892
7f59f0571539200f26d72408bd4ef63e3d0d9fb3
refs/heads/master
2020-12-10T17:21:34.230452
2020-01-30T04:20:10
2020-01-30T04:20:10
233,659,041
0
0
null
null
null
null
UTF-8
C++
false
false
4,241
cpp
main.cpp
#include <Arduino.h> #include <stdbool.h> const unsigned long BAUDRATE = 9600; /* * PIN Configuration */ const uint8_t PINS_DIP_SW[] = {5, 6, 7}; const uint8_t PINS_SIG_IN[] = {8, 9, 10}; const uint8_t PIN_SIG_OUT = 2; unsigned long PrevTime_SW = 0; unsigned long PrevTime_Sensor = 0; unsigned long PrevTime_StateMonitor = 0; const unsigned long INTERVAL_SW = 200; const unsigned long INTERVAL_SENSOR = 100; const unsigned long INTERVAL_STATEMONITOR = 200; /* DIP switch state variable * SW0 - Disable/Enable Sensor 1 * SW1 - Disable/Enable Sensor 2 * SW2 - Invert Output * * S01 * LL - Enable Sensor 0 * HL - Enable Sensor 0, 1 * LH - Enable Sensor 0, 2 * HH - Enable Sensor 0, 1, 2 * S2 * L - Output Invert FALSE * H - Output Invert TRUE */ bool State_SW[] = {true, true, true}; /* * Sensor state variable * Sensor 0, Sensor1, Sensor 2 */ bool State_Sensor[] = {false, false, false}; /* * Output GPIO state */ bool State_Output = false; /* * */ bool State_StateMonitor = false; bool sig_out(bool); bool getSensorState(int); void print_sw_state(); void print_sensor_state(); void print_output_state(); void print_state(); void setup() { // Initialize Serial Serial.begin(BAUDRATE); // Initialize dip switch for (size_t i = 0; i < sizeof(PINS_DIP_SW) / sizeof(*PINS_DIP_SW); i++) { pinMode(PINS_DIP_SW[i], INPUT); } // Initialize sensor pins for (size_t i = 0; i < sizeof(PINS_SIG_IN) / sizeof(*PINS_SIG_IN); i++) { pinMode(PINS_SIG_IN[i], INPUT_PULLUP); } // Initialize output pinMode(PIN_SIG_OUT, OUTPUT); pinMode(LED_BUILTIN, OUTPUT); Serial.println(F("Arduino ready!")); } void loop() { /* DIP Switch */ if (millis() - PrevTime_SW > INTERVAL_SW) { PrevTime_SW = millis(); State_SW[0] = !digitalRead(PINS_DIP_SW[0]); State_SW[1] = !digitalRead(PINS_DIP_SW[1]); State_SW[2] = !digitalRead(PINS_DIP_SW[2]); } /* Read Sensor */ if (millis() - PrevTime_Sensor > INTERVAL_SENSOR) { PrevTime_Sensor = millis(); State_Sensor[0] = digitalRead(PINS_SIG_IN[0]); State_Sensor[1] = digitalRead(PINS_SIG_IN[1]); State_Sensor[2] = digitalRead(PINS_SIG_IN[2]); } if (getSensorState(0) && getSensorState(1) && getSensorState(2)) { if (State_SW[2]) sig_out(false); else sig_out(true); } else { if (State_SW[2]) sig_out(true); else sig_out(false); } if (State_StateMonitor && (millis() - PrevTime_StateMonitor > INTERVAL_STATEMONITOR)) { PrevTime_StateMonitor = millis(); print_state(); Serial.println(); } } bool getSensorState(int ch) { if (ch > 0) { if (State_SW[ch - 1]) { return State_Sensor[ch]; } else { return true; } } else { return State_Sensor[0]; } } void serialEvent() { String msg = Serial.readString(); msg.trim(); if (msg == "out1") { sig_out(true); } else if (msg == "out0") { sig_out(false); } else if (msg == "sensor") { print_sensor_state(); Serial.println(); } else if (msg == "sw") { print_sw_state(); Serial.println(); } else if (msg == "out") { print_output_state(); Serial.println(); } else if (msg == "state") { print_state(); Serial.println(); } else if (msg == "state1") { State_StateMonitor = true; } else if (msg == "state0") { State_StateMonitor = false; } } bool sig_out(bool state) { digitalWrite(PIN_SIG_OUT, state); digitalWrite(LED_BUILTIN, state); State_Output = state; return state; } void print_sw_state() { Serial.print(F("SWITCH: SW0-")); Serial.print(State_SW[0]); Serial.print(F(" SW1-")); Serial.print(State_SW[1]); Serial.print(F(" SW2-")); Serial.print(State_SW[2]); } void print_sensor_state() { Serial.print(F("SENSOR: S0-")); Serial.print(State_Sensor[0]); Serial.print(F(" S1-")); Serial.print(State_Sensor[1]); Serial.print(F(" S2-")); Serial.print(State_Sensor[2]); } void print_output_state() { Serial.print(F("SIGOUT-")); Serial.print(State_Output); } void print_state() { Serial.print(F("SYST-")); Serial.print(millis()); Serial.print(" "); print_sw_state(); Serial.print(" "); print_sensor_state(); Serial.print(" "); print_output_state(); }
ba9a2b77fd2d892275e632406955a89e1b38fa9e
a332e949c6b513f00349bec2e0e5de726c8049fc
/CSC454HW1/House.h
78a401b4ea613db61f3442b0937c21a2ff03cab8
[]
no_license
cking20/SystemSimulation
a14b6df80bd52035bd974a817c6fc4ca4c95fbe4
9d591b15daaa4c852657de5aa071dd1201a7a139
refs/heads/master
2021-05-12T03:09:28.448105
2018-01-16T00:37:21
2018-01-16T00:37:21
117,609,491
0
0
null
null
null
null
UTF-8
C++
false
false
2,058
h
House.h
/* * File: House.h * Author: chrisrk192 * * Created on September 1, 2017, 3:24 PM * * House hold all pertinent */ #include "Room.h" #include "Creature.h" #ifndef HOUSE_H #define HOUSE_H class House { public: /** * Constructor, instanciates a house with 100 rooms */ House(); House(const House& orig); /** * Destructor, deletes all rooms in the house */ virtual ~House(); int maxRooms; int numRooms; Room* rooms[100]; House(int); /** * Get the pointer to a room with name roomName * @param roomName * @return the pointer of room with name roomName */ Room* getRoom(int); /** * Get the room pointer that a creature c is in * @param c the creature to reference * @return the pointer to the room */ Room* getRoomCreatureIsIn(Creature*); /** * Tells whether a creature can move in the direction d. Creatures can only * move if the room they are in has a valid room in direction d and that * room is not full * @param c the creature to reference * @param d the direction to move to * @return true iff the creature is able to move in direction d */ bool CanCreatureMove(Creature*, enums::Direction); /** * Move a creature c in direction d if the creature can move in that direction * @param c the creature to reference * @param d the direction to go * @return true iff the creature has been moved */ bool MoveCreature(Creature*, enums::Direction); /** * Searches for the room that the player is in * @return the pointer to the room player is in, * null if the player cant be found */ Room* getRoomPlayerIn(); /** * Searches through all the rooms for a creature with name * @param name the name of the creature to find * @return the pointer to the creature with name if the creature exists, * null otherwise */ Creature* findCreatureByID(int); private: }; #endif /* HOUSE_H */
f71af7a6a15d77467e2f16257aba9069c91869a0
e217eaf05d0dab8dd339032b6c58636841aa8815
/IfcTunnel/src/OpenInfraPlatform/IfcTunnel/entity/IfcEventTime.cpp
82a2596ea981985fcfee91ffdb9ca785e75af0a2
[]
no_license
bigdoods/OpenInfraPlatform
f7785ebe4cb46e24d7f636e1b4110679d78a4303
0266e86a9f25f2ea9ec837d8d340d31a58a83c8e
refs/heads/master
2021-01-21T03:41:20.124443
2016-01-26T23:20:21
2016-01-26T23:20:21
57,377,206
0
1
null
2016-04-29T10:38:19
2016-04-29T10:38:19
null
UTF-8
C++
false
false
3,722
cpp
IfcEventTime.cpp
/*! \verbatim * \copyright Copyright (c) 2014 Julian Amann. All rights reserved. * \date 2014-03-05 19:30 * \author Julian Amann <julian.amann@tum.de> (https://www.cms.bgu.tum.de/en/team/amann) * \brief This file is part of the BlueFramework. * \endverbatim */ #include <sstream> #include <limits> #include "model/IfcTunnelException.h" #include "reader/ReaderUtil.h" #include "writer/WriterUtil.h" #include "IfcTunnelEntityEnums.h" #include "include/IfcDataOriginEnum.h" #include "include/IfcDateTime.h" #include "include/IfcEventTime.h" #include "include/IfcLabel.h" namespace OpenInfraPlatform { namespace IfcTunnel { // ENTITY IfcEventTime IfcEventTime::IfcEventTime() { m_entity_enum = IFCEVENTTIME; } IfcEventTime::IfcEventTime( int id ) { m_id = id; m_entity_enum = IFCEVENTTIME; } IfcEventTime::~IfcEventTime() {} // method setEntity takes over all attributes from another instance of the class void IfcEventTime::setEntity( shared_ptr<IfcTunnelEntity> other_entity ) { shared_ptr<IfcEventTime> other = dynamic_pointer_cast<IfcEventTime>(other_entity); if( !other) { return; } m_Name = other->m_Name; m_DataOrigin = other->m_DataOrigin; m_UserDefinedDataOrigin = other->m_UserDefinedDataOrigin; m_ActualDate = other->m_ActualDate; m_EarlyDate = other->m_EarlyDate; m_LateDate = other->m_LateDate; m_ScheduleDate = other->m_ScheduleDate; } void IfcEventTime::getStepLine( std::stringstream& stream ) const { stream << "#" << m_id << "=IFCEVENTTIME" << "("; if( m_Name ) { m_Name->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_DataOrigin ) { m_DataOrigin->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_UserDefinedDataOrigin ) { m_UserDefinedDataOrigin->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_ActualDate ) { m_ActualDate->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_EarlyDate ) { m_EarlyDate->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_LateDate ) { m_LateDate->getStepParameter( stream ); } else { stream << "$"; } stream << ","; if( m_ScheduleDate ) { m_ScheduleDate->getStepParameter( stream ); } else { stream << "$"; } stream << ");"; } void IfcEventTime::getStepParameter( std::stringstream& stream, bool ) const { stream << "#" << m_id; } void IfcEventTime::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcTunnelEntity> >& map ) { const int num_args = (int)args.size(); if( num_args<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcEventTime, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcTunnelException( strserr.str().c_str() ); } #ifdef _DEBUG if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcEventTime, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; } #endif m_Name = IfcLabel::readStepData( args[0] ); m_DataOrigin = IfcDataOriginEnum::readStepData( args[1] ); m_UserDefinedDataOrigin = IfcLabel::readStepData( args[2] ); m_ActualDate = IfcDateTime::readStepData( args[3] ); m_EarlyDate = IfcDateTime::readStepData( args[4] ); m_LateDate = IfcDateTime::readStepData( args[5] ); m_ScheduleDate = IfcDateTime::readStepData( args[6] ); } void IfcEventTime::setInverseCounterparts( shared_ptr<IfcTunnelEntity> ptr_self_entity ) { IfcSchedulingTime::setInverseCounterparts( ptr_self_entity ); } void IfcEventTime::unlinkSelf() { IfcSchedulingTime::unlinkSelf(); } } // end namespace IfcTunnel } // end namespace OpenInfraPlatform
806b4f783a2891e83f288a8a24a30e5621cbffe6
8409095e00ddec07248106c817ed1fe931108f3d
/SafeQueue.h
7f46b54ac7984bab24297122c1c23d8a0db85f58
[]
no_license
wusopp/SafeQueue
8a1ab7b54fd6b42b6517170ae97d75c214a866a6
ed33c3680eb7cc86e2a6771b0c204733ca850925
refs/heads/master
2021-06-08T01:25:08.437629
2016-12-04T02:01:50
2016-12-04T02:01:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,258
h
SafeQueue.h
///////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Name :Isaac Styles // Department Name : Computer and Information Sciences // File Name :SafeQueue.h // Purpose :Thread-safe queue template // Author : Isaac Styles, styles@goldmail.etsu.edu // Create Date :Apr 13, 2016 // //----------------------------------------------------------------------------------------------------------- // // Modified Date : Apr 28, 2016 // Modified By : Isaac Styles // ///////////////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef Q_H #define Q_H #include <queue> #include <pthread.h> #include <semaphore.h> template <class T> class SafeQueue { public: /// <summary> /// Default Constructor intializes mutex and semaphore /// </summary> SafeQueue<T>() { pthread_mutex_init( &mutex, NULL ); //initialize mutex sem_init(&sem,0,0); //initialize semaphore } /// <summary> /// Push to stack and Post onto the semaphore /// </summary> void enqueue(T& p) { pthread_mutex_lock(&mutex); vals.push(p); pthread_mutex_unlock(&mutex); sem_post(&sem); } /// <summary> /// Wait on queue and Pop from stack /// </summary> T dequeue() { T p; sem_wait(&sem); pthread_mutex_lock(&mutex); p = vals.front(); vals.pop(); pthread_mutex_unlock(&mutex); return p; } /// <summary> /// Return true if queue is empty /// </summary> bool isEmpty() { if (vals.size() == 0) { return true; } return false; } protected: private: queue<T> vals; //standard queue<T> pthread_mutex_t mutex; //protects the queue with atomic access sem_t sem; //wait queue }; #endif // Q_H
ae4dbba1a008788ef7df29098fd2b2de80937f58
35cd401ef876bec39366e5724bae71581c0cb658
/Cpp/Interface/WorldViewProgram.h
c3c7f027cf7b0f25f6bf0454cd51e402ad68c69b
[]
permissive
krishauser/Klampt
bd450b8c67189b31abe4eb056707d50da3aa651b
dbaf38ca290a36fba9a8f4f9b6a49fda689f6585
refs/heads/master
2023-08-29T21:54:40.758699
2023-07-21T12:34:38
2023-07-21T12:34:38
13,944,923
327
98
BSD-3-Clause
2023-08-26T04:20:26
2013-10-29T02:46:08
C++
UTF-8
C++
false
false
2,938
h
WorldViewProgram.h
#ifndef WORLD_VIEW_PROGRAM_H #define WORLD_VIEW_PROGRAM_H #include <Klampt/Modeling/World.h> #include <KrisLibrary/GLdraw/GL.h> #include <KrisLibrary/GLdraw/Widget.h> #include <KrisLibrary/math3d/Ray3D.h> #if HAVE_GLUI #include <KrisLibrary/GLdraw/GLUINavigationProgram.h> #include <KrisLibrary/GLdraw/GLScreenshotProgram.h> #if defined (__APPLE__) || defined (MACOSX) #include <glui.h> #else #include <GL/glui.h> #endif //__APPLE__ || MACOSX #define BASE_PROGRAM GLUINavigationProgram #else #if HAVE_GLUT #include <KrisLibrary/GLdraw/GLUTNavigationProgram.h> #include <KrisLibrary/GLdraw/GLScreenshotProgram.h> #define BASE_PROGRAM GLUTNavigationProgram #if defined (__APPLE__) || defined (MACOSX) #include <GLUT/glut.h> #else #include <GL/glut.h> #endif // Apple #if FREEGLUT #include <GL/freeglut_ext.h> #endif //FREEGLUT #endif //HAVE_GLUT #endif //HAVE_GLUI namespace Klampt { using namespace Math3D; using namespace GLDraw; bool LoadWorldCommandLine(WorldModel& world,int argc, const char** argv); #if HAVE_GLUI || HAVE_GLUT /** @brief A very simple interface that directly uses GLUT or GLUI to pop up a window * where you can interact with a world. * * Just subclass and override Handle_X functions of GLUTNavigationProgram/GLUINavigationProgram, * and call Run() on the object at the end of your main() function. */ class WorldViewProgram : public GLScreenshotProgram<BASE_PROGRAM> { public: WorldViewProgram(WorldModel* world); virtual ~WorldViewProgram() {} bool LoadCommandLine(int argc,const char** argv); virtual bool Initialize(); virtual void SetWorldLights(); void ClickRay(int x,int y,Ray3D& r) const; RobotModel* ClickRobot(const Ray3D& r,int& body,Vector3& localpt) const; RigidObjectModel* ClickObject(const Ray3D& r,Vector3& localpt) const; virtual void RefreshIdle(); virtual void RenderWorld(); virtual void DoFreeDrag(int dx,int dy,int button); virtual void DoCtrlDrag(int dx,int dy,int button); virtual void DoAltDrag(int dx,int dy,int button); virtual void DoShiftDrag(int dx,int dy,int button); WorldModel* world; }; #endif // HAVE_GLUI || HAVE_GLUT /** @brief A widget interface that can be overloaded to interact with a world. */ class WorldViewWidget : public Widget { public: WorldViewWidget(WorldModel* world); virtual bool Hover(int x, int y, Camera::Viewport& viewport, double& distance); //these currently don't do anything, but can be overloaded to do something with the current robot virtual bool BeginDrag(int x, int y, Camera::Viewport& viewport, double& distance); virtual void Drag(int dx, int dy, Camera::Viewport& viewport) {} virtual void EndDrag() {} virtual void DrawGL(Camera::Viewport& viewport); WorldModel* world; //click information RobotModel* clickedRobot; RigidObjectModel* clickedObject; int body; Vector3 localpt; }; } // namespace Klampt #endif
4be44543ada930a156389fb15006294a2c5cf522
eb653232377c835140b5213e90ed60847d5193ac
/example_1_shapes_and_colors/src/ofApp.cpp
bc8b1a6a3a453d9a2b3740e01938a852074dfc8d
[ "Apache-2.0" ]
permissive
ofcourseio/Design_by_Code
d84fcd710794af57e4ad661dc8fa6c01d6c7301c
f06b0449f8c5912c53d934b26f36e981c37420f3
refs/heads/master
2016-09-03T06:37:35.930163
2015-02-12T04:27:13
2015-02-12T04:27:13
30,685,463
6
0
null
null
null
null
UTF-8
C++
false
false
2,500
cpp
ofApp.cpp
/*------------------------------------------------------------- [ofCourse][Spring 2015] Design by Code Gabriel Gianordoli gianordoli.com @gianordoli -------------------------------------------------------------*/ #include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetCircleResolution(50); } //-------------------------------------------------------------- void ofApp::update(){ } //-------------------------------------------------------------- void ofApp::draw(){ // Solid color in RGB ofBackground(0, 120, 80); // Solid color in Hexadecimal // ofBackgroundHex(0x00ff00); // CIRCLE // Setting a preset color ofFill(); ofSetColor(ofColor::salmon); ofCircle(400, 400, 200); // Setting an RGBA color ofSetColor(200, 0, 255, 50); ofCircle(200, 200, 100); // Setting an hexadecimal color ofSetHexColor(0xFACADA); ofRect(500, 450, 300, 100); // Drawing a polygon with no fill // Setting a grayscale color ofSetColor(255, 100); ofSetLineWidth(10); ofNoFill(); ofBeginShape(); ofVertex(500, 300); ofVertex(250, 400); ofVertex(500, 500); ofVertex(250, 600); ofVertex(500, 700); ofEndShape(true); // Bezier ofBezier(0, 0, ofGetWidth()*0.5, 0, ofGetWidth()*0.5, ofGetHeight(), ofGetWidth(), ofGetHeight()); } //-------------------------------------------------------------- void ofApp::keyPressed(int key){ } //-------------------------------------------------------------- void ofApp::keyReleased(int key){ } //-------------------------------------------------------------- void ofApp::mouseMoved(int x, int y ){ } //-------------------------------------------------------------- void ofApp::mouseDragged(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mousePressed(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mouseReleased(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::windowResized(int w, int h){ } //-------------------------------------------------------------- void ofApp::gotMessage(ofMessage msg){ } //-------------------------------------------------------------- void ofApp::dragEvent(ofDragInfo dragInfo){ }
0369e9ebe8443e6b1b1a36210f9c3dfba3c0b864
8798f11778edcc78c01949b94edca4c0980d66fb
/test/T42.stl.names.map.hpp
9747eb1031c15c31efa07d5c96f3175aba1adcd4
[ "MIT" ]
permissive
RosettaCommons/binder
32cfa9baf464e5419aa12f19fbd17da12deb2d2c
cb9788e87286686762746532f624843e2f1972d0
refs/heads/master
2023-06-28T00:51:39.433032
2023-06-19T17:44:17
2023-06-19T17:44:17
71,400,854
285
64
MIT
2023-09-06T09:17:17
2016-10-19T21:29:29
C++
UTF-8
C++
false
false
1,265
hpp
T42.stl.names.map.hpp
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- // vi: set ts=2 noet: // // Copyright (c) 2016 Sergey Lyskov <sergey.lyskov@jhu.edu> // // All rights reserved. Use of this source code is governed by a // MIT license that can be found in the LICENSE file. /// @file binder/test/T42.stl.names.map.hpp /// @brief Binder self-test file. Tests for bindings of STL classes. /// @author Sergey Lyskov /// The multimap/multiset classes are tested in the binder/test/T43.stl.names.multi.hpp to avoid /// problems with different ordering of multiset/set and multimap/map bindings /// in the generated files on different platforms. #ifndef _INCLUDED_T42_stl_names_map_hpp_ #define _INCLUDED_T42_stl_names_map_hpp_ #include <functional> #include <map> #include <unordered_map> #include <deque> #include <forward_list> #include <list> #include <string> #include <vector> void foo(std::map<float, int>) { } void foo(std::unordered_map<float, int>) { } void foo(std::map<std::string, std::list< std::forward_list< std::deque< std::vector<double> > > > >) { } void foo(std::unordered_map<std::string, std::list< std::forward_list< std::deque< std::vector<double> > > > >) { } #endif // _INCLUDED_T42_stl_names_map_hpp_
cb54c3debcc503b0acfb483f9529e77d9ef2fae4
feea85165502f6b3746719a57b6246979b202bb8
/include/util/moveutil.hpp
dd54df89519690b1d4c109d1397892f42fbaf5cf
[ "MIT" ]
permissive
Guardian820/Teal
11d4637978169677874836b2af241e9d458e401d
ce83249df744c56638b6414a7e5a1360deadce75
refs/heads/master
2020-05-04T18:53:17.873223
2019-03-03T12:58:11
2019-03-03T12:58:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
521
hpp
moveutil.hpp
// Copyright (C) 2019 Samy Bensaid // This file is part of the Teal project. // For conditions of distribution and use, see copyright notice in LICENSE #pragma once #ifndef MOVEMENTUTIL_HPP #define MOVEMENTUTIL_HPP #include <NDK/Entity.hpp> void moveEntity(const Ndk::EntityHandle& e, bool fightMode = false); void recomputePathIfObstacle(const Ndk::EntityHandle& e); // Recomputes path of entity if a NPC moved into it void getItemsFromGround(const Ndk::EntityHandle& e); #endif // MOVEMENTUTIL_HPP
65e5bae08ddc43b7d93453e542ff2b659f191b1a
492976adfdf031252c85de91a185bfd625738a0c
/lib/hkStubs/Havok/Physics2012/Dynamics/Collide/hkpResponseModifier.h
0fe06e79c3424dbaa121d75f94fad081b047a8f6
[]
no_license
zeldaret/botw
50ccb72c6d3969c0b067168f6f9124665a7f7590
fd527f92164b8efdb746cffcf23c4f033fbffa76
refs/heads/master
2023-07-21T13:12:24.107437
2023-07-01T20:29:40
2023-07-01T20:29:40
288,736,599
1,350
117
null
2023-09-03T14:45:38
2020-08-19T13:16:30
C++
UTF-8
C++
false
false
2,927
h
hkpResponseModifier.h
#pragma once #include <Havok/Common/Base/hkBase.h> class hkpConstraintInstance; class hkpConstraintOwner; class hkpDynamicsContactMgr; class hkpRigidBody; class hkpResponseModifier { public: enum Flags { MASS_SCALING = 1, CENTER_OF_MASS_DISPLACEMENT = 2, SURFACE_VELOCITY = 4, IMPULSE_SCALING = 8, VISCOUS_SURFACE = 16, ADDITIONAL_SIZE_MODIFIERS = MASS_SCALING | CENTER_OF_MASS_DISPLACEMENT | SURFACE_VELOCITY, }; static void setInvMassScalingForContact(hkpDynamicsContactMgr* manager, hkpRigidBody* bodyA, hkpRigidBody* bodyB, hkpConstraintOwner& constraintOwner, const hkVector4& factorA, const hkVector4& factorB); static void setInvMassScalingForContact(hkpDynamicsContactMgr* manager, hkpRigidBody* body, hkpConstraintOwner& constraintOwner, const hkVector4& factor); static void setCenterOfMassDisplacementForContact(hkpDynamicsContactMgr* manager, hkpRigidBody* bodyA, hkpRigidBody* bodyB, hkpConstraintOwner& constraintOwner, const hkVector4& displacementA, const hkVector4& displacementB); static void setImpulseScalingForContact(hkpDynamicsContactMgr* manager, hkpRigidBody* bodyA, hkpRigidBody* bodyB, hkpConstraintOwner& constraintOwner, hkReal usedImpulseFraction, hkReal maxAcceleration); static void setSurfaceVelocity(hkpDynamicsContactMgr* manager, hkpRigidBody* body, hkpConstraintOwner& constraintOwner, const hkVector4& velWorld); static void clearSurfaceVelocity(hkpDynamicsContactMgr* manager, hkpConstraintOwner& constraintOwner, hkpRigidBody* body); static void setLowSurfaceViscosity(hkpDynamicsContactMgr* manager, hkpConstraintOwner& constraintOwner); static void disableConstraint(hkpConstraintInstance* instance, hkpConstraintOwner& constraintOwner); static void enableConstraint(hkpConstraintInstance* instance, hkpConstraintOwner& constraintOwner); HK_FORCE_INLINE static hkUint16 getAdditionalSchemaSize(hkUint8 flags); static const hkUint16 tableOfAdditionalSchemaSizes[]; }; inline hkUint16 hkpResponseModifier::getAdditionalSchemaSize(hkUint8 flags) { return tableOfAdditionalSchemaSizes[flags & ADDITIONAL_SIZE_MODIFIERS]; }
66ab09f107574b06ef7751439641fb55d53ead37
44ace36ac975c50ffe2a32f5f044e09150cb9e4a
/example/openFrameworks/testApp.h
dcaef2b5f6fd593dba308868902e665fde407099
[]
no_license
paulobarcelos/SimpleTweener
60beb65be9d7f8ac683db8f6c476ef30fa8e8057
0b8b4fc00006c40a2ad291415ad101db54154439
refs/heads/master
2021-01-16T19:31:17.666253
2010-11-25T15:37:04
2010-11-25T15:37:04
1,060,342
3
0
null
null
null
null
UTF-8
C++
false
false
304
h
testApp.h
#ifndef _TEST_APP #define _TEST_APP #include "ofMain.h" #include "SimpleTweener.h" class testApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void keyPressed( int key ); SimpleTweener tweener_1; SimpleTweener tweener_2; float x; float y; float r; }; #endif
27de98154b0ff0e78dba518460d25d703ed330d8
de8c2e562e8d0ebd3e6d7469f41741c06d4c60bf
/code/Common/GSPSDK-V3/src/GSPCommon/RTP/RtpProFrame.h
8d7bae45306c4add39ddade98d49c02b24b25c5e
[]
no_license
dongdong-2009/Bull
c95da575597414e85b161ac1397f5b12d6df3bb2
ab10bef10d3422d37c36475c1b0a0fd2ab360004
refs/heads/master
2021-05-27T11:30:20.586457
2014-06-06T10:32:34
2014-06-06T10:32:34
null
0
0
null
null
null
null
GB18030
C++
false
false
1,755
h
RtpProFrame.h
/* ****************************************** Copyright (C), 2011-2012, GOSUN Filename : RTPPROFRAME.H Author : 邹阳星 Version : 1.0.0.1 Date: 2013/4/3 9:17 Description: RTP 协议帧 ******************************************** */ #ifndef _GS_H_RTPPROFRAME_H_ #define _GS_H_RTPPROFRAME_H_ #include "../GSPMemory.h" #include "RtpStru.h" #include "RTPPacket.h" namespace GSP { namespace RTP { class CRtpProPacket : public CProPacket { public : static const UINT iDEFAULT_PACKET_SIZE = 1400; private : //最大的包长度 BYTE *m_bPriBuffer; UINT m_iPriMaxBuf; CRtpHeader m_csRtpHeader; UINT m_iPriBufDataSize; CGSPBuffer *m_pRefBuf; public : static CRtpProPacket *Create( const BYTE *pPacket, int iPacketLen ); static CRtpProPacket *Create( CGSPBuffer *pBuf ); // static CRtpProPacket *Create( const StruRTPHeader &stHeader ); static CRtpProPacket *Create( const CRtpHeader &csHeader , UINT iMaxBuffer); //出错返回 -1, 其他返回使用的 数据大小, < iSize 表示缓冲区已经满了 INT MaxAppendPlayload(const BYTE *pPlayload, UINT iSize ); INLINE CRtpHeader &GetHeader(void) { return m_csRtpHeader; } protected : CRtpProPacket(void); virtual ~CRtpProPacket(void); }; class CRtpProFrame : public CProFrame { public: // bEnableMark 非 TRUE 每帧结束 把 iMark 设为 1 static CRtpProFrame *Create(CFrameCache *pFrameData, CRtpHeader &csHeader, BOOL bEnableMark = TRUE); static CRtpProFrame *Create(void) { return new CRtpProFrame(); } CRtpHeader *GetFirstHeader(void); private : CRtpProFrame(void); virtual ~CRtpProFrame(void); }; } } //end namespace GSP #endif //end _GS_H_RTPPROFRAME_H_
d0fd759f17f4e7beab8df72e6df48125f16ea353
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-cloudformation/include/aws/cloudformation/model/CreateChangeSetRequest.h
fcd5568d64659a0d4625d5123852d35c7ac4e215
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
108,931
h
CreateChangeSetRequest.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/cloudformation/CloudFormation_EXPORTS.h> #include <aws/cloudformation/CloudFormationRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/cloudformation/model/RollbackConfiguration.h> #include <aws/cloudformation/model/ChangeSetType.h> #include <aws/cloudformation/model/OnStackFailure.h> #include <aws/cloudformation/model/Parameter.h> #include <aws/cloudformation/model/Capability.h> #include <aws/cloudformation/model/Tag.h> #include <aws/cloudformation/model/ResourceToImport.h> #include <utility> namespace Aws { namespace CloudFormation { namespace Model { /** * <p>The input for the <a>CreateChangeSet</a> action.</p><p><h3>See Also:</h3> * <a * href="http://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/CreateChangeSetInput">AWS * API Reference</a></p> */ class CreateChangeSetRequest : public CloudFormationRequest { public: AWS_CLOUDFORMATION_API CreateChangeSetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateChangeSet"; } AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override; protected: AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline const Aws::String& GetStackName() const{ return m_stackName; } /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; } /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; } /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); } /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); } /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline CreateChangeSetRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;} /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline CreateChangeSetRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;} /** * <p>The name or the unique ID of the stack for which you are creating a change * set. CloudFormation generates the change set by comparing this stack's * information with the information that you submit, such as a modified template or * different parameter input values.</p> */ inline CreateChangeSetRequest& WithStackName(const char* value) { SetStackName(value); return *this;} /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; } /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; } /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); } /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); } /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline CreateChangeSetRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline CreateChangeSetRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} /** * <p>A structure that contains the body of the revised template, with a minimum * length of 1 byte and a maximum length of 51,200 bytes. CloudFormation generates * the change set by comparing this template with the template of the stack that * you specified.</p> <p>Conditional: You must specify only * <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline CreateChangeSetRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline const Aws::String& GetTemplateURL() const{ return m_templateURL; } /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; } /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline void SetTemplateURL(const Aws::String& value) { m_templateURLHasBeenSet = true; m_templateURL = value; } /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline void SetTemplateURL(Aws::String&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::move(value); } /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline void SetTemplateURL(const char* value) { m_templateURLHasBeenSet = true; m_templateURL.assign(value); } /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline CreateChangeSetRequest& WithTemplateURL(const Aws::String& value) { SetTemplateURL(value); return *this;} /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline CreateChangeSetRequest& WithTemplateURL(Aws::String&& value) { SetTemplateURL(std::move(value)); return *this;} /** * <p>The location of the file that contains the revised template. The URL must * point to a template (max size: 460,800 bytes) that's located in an Amazon S3 * bucket or a Systems Manager document. CloudFormation generates the change set by * comparing this template with the stack that you specified.</p> <p>Conditional: * You must specify only <code>TemplateBody</code> or <code>TemplateURL</code>.</p> */ inline CreateChangeSetRequest& WithTemplateURL(const char* value) { SetTemplateURL(value); return *this;} /** * <p>Whether to reuse the template that's associated with the stack to create the * change set.</p> */ inline bool GetUsePreviousTemplate() const{ return m_usePreviousTemplate; } /** * <p>Whether to reuse the template that's associated with the stack to create the * change set.</p> */ inline bool UsePreviousTemplateHasBeenSet() const { return m_usePreviousTemplateHasBeenSet; } /** * <p>Whether to reuse the template that's associated with the stack to create the * change set.</p> */ inline void SetUsePreviousTemplate(bool value) { m_usePreviousTemplateHasBeenSet = true; m_usePreviousTemplate = value; } /** * <p>Whether to reuse the template that's associated with the stack to create the * change set.</p> */ inline CreateChangeSetRequest& WithUsePreviousTemplate(bool value) { SetUsePreviousTemplate(value); return *this;} /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; } /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline CreateChangeSetRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;} /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline CreateChangeSetRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(std::move(value)); return *this;} /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline CreateChangeSetRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } /** * <p>A list of <code>Parameter</code> structures that specify input parameters for * the change set. For more information, see the <a>Parameter</a> data type.</p> */ inline CreateChangeSetRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline const Aws::Vector<Capability>& GetCapabilities() const{ return m_capabilities; } /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; } /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline void SetCapabilities(const Aws::Vector<Capability>& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; } /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline void SetCapabilities(Aws::Vector<Capability>&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); } /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline CreateChangeSetRequest& WithCapabilities(const Aws::Vector<Capability>& value) { SetCapabilities(value); return *this;} /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline CreateChangeSetRequest& WithCapabilities(Aws::Vector<Capability>&& value) { SetCapabilities(std::move(value)); return *this;} /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline CreateChangeSetRequest& AddCapabilities(const Capability& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; } /** * <p>In some cases, you must explicitly acknowledge that your stack template * contains certain capabilities in order for CloudFormation to create the * stack.</p> <ul> <li> <p> <code>CAPABILITY_IAM</code> and * <code>CAPABILITY_NAMED_IAM</code> </p> <p>Some stack templates might include * resources that can affect permissions in your Amazon Web Services account; for * example, by creating new Identity and Access Management (IAM) users. For those * stacks, you must explicitly acknowledge this by specifying one of these * capabilities.</p> <p>The following IAM resources require you to specify either * the <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> * capability.</p> <ul> <li> <p>If you have IAM resources, you can specify either * capability.</p> </li> <li> <p>If you have IAM resources with custom names, you * <i>must</i> specify <code>CAPABILITY_NAMED_IAM</code>.</p> </li> <li> <p>If you * don't specify either of these capabilities, CloudFormation returns an * <code>InsufficientCapabilities</code> error.</p> </li> </ul> <p>If your stack * template contains these resources, we suggest that you review all permissions * associated with them and edit their permissions if necessary.</p> <ul> <li> <p> * <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html"> * AWS::IAM::AccessKey</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html"> * AWS::IAM::Group</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html">AWS::IAM::InstanceProfile</a> * </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html"> * AWS::IAM::Policy</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html"> * AWS::IAM::Role</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html"> * AWS::IAM::User</a> </p> </li> <li> <p> <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html">AWS::IAM::UserToGroupAddition</a> * </p> </li> </ul> <p>For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities">Acknowledging * IAM resources in CloudFormation templates</a>.</p> </li> <li> <p> * <code>CAPABILITY_AUTO_EXPAND</code> </p> <p>Some template contain macros. Macros * perform custom processing on templates; this can include simple actions like * find-and-replace operations, all the way to extensive transformations of entire * templates. Because of this, users typically create a change set from the * processed template, so that they can review the changes resulting from the * macros before actually creating the stack. If your stack template contains one * or more macros, and you choose to create a stack directly from the processed * template, without first reviewing the resulting changes in a change set, you * must acknowledge this capability. This includes the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html">AWS::Include</a> * and <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html">AWS::Serverless</a> * transforms, which are macros hosted by CloudFormation.</p> <p>This * capacity doesn't apply to creating change sets, and specifying it when creating * change sets has no effect.</p> <p>If you want to create a stack from a stack * template that contains macros <i>and</i> nested stacks, you must create or * update the stack directly from the template using the <a>CreateStack</a> or * <a>UpdateStack</a> action, and specifying this capability.</p> <p>For * more information about macros, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html">Using * CloudFormation macros to perform custom processing on templates</a>.</p> </li> * </ul> */ inline CreateChangeSetRequest& AddCapabilities(Capability&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(std::move(value)); return *this; } /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline const Aws::Vector<Aws::String>& GetResourceTypes() const{ return m_resourceTypes; } /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; } /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline void SetResourceTypes(const Aws::Vector<Aws::String>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; } /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline void SetResourceTypes(Aws::Vector<Aws::String>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); } /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline CreateChangeSetRequest& WithResourceTypes(const Aws::Vector<Aws::String>& value) { SetResourceTypes(value); return *this;} /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline CreateChangeSetRequest& WithResourceTypes(Aws::Vector<Aws::String>&& value) { SetResourceTypes(std::move(value)); return *this;} /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline CreateChangeSetRequest& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline CreateChangeSetRequest& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; } /** * <p>The template resource types that you have permissions to work with if you * execute this change set, such as <code>AWS::EC2::Instance</code>, * <code>AWS::EC2::*</code>, or <code>Custom::MyCustomInstance</code>.</p> <p>If * the list of resource types doesn't include a resource type that you're updating, * the stack update fails. By default, CloudFormation grants permissions to all * resource types. Identity and Access Management (IAM) uses this parameter for * condition keys in IAM policies for CloudFormation. For more information, see <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html">Controlling * access with Identity and Access Management</a> in the CloudFormation User * Guide.</p> */ inline CreateChangeSetRequest& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline const Aws::String& GetRoleARN() const{ return m_roleARN; } /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; } /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; } /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); } /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); } /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline CreateChangeSetRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;} /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline CreateChangeSetRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;} /** * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) * role that CloudFormation assumes when executing the change set. CloudFormation * uses the role's credentials to make calls on your behalf. CloudFormation uses * this role for all future operations on the stack. Provided that users have * permission to operate on the stack, CloudFormation uses this role even if the * users don't have permission to pass it. Ensure that the role grants least * permission.</p> <p>If you don't specify a value, CloudFormation uses the role * that was previously associated with the stack. If no role is available, * CloudFormation uses a temporary session that is generated from your user * credentials.</p> */ inline CreateChangeSetRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;} /** * <p>The rollback triggers for CloudFormation to monitor during stack creation and * updating operations, and for the specified monitoring period afterwards.</p> */ inline const RollbackConfiguration& GetRollbackConfiguration() const{ return m_rollbackConfiguration; } /** * <p>The rollback triggers for CloudFormation to monitor during stack creation and * updating operations, and for the specified monitoring period afterwards.</p> */ inline bool RollbackConfigurationHasBeenSet() const { return m_rollbackConfigurationHasBeenSet; } /** * <p>The rollback triggers for CloudFormation to monitor during stack creation and * updating operations, and for the specified monitoring period afterwards.</p> */ inline void SetRollbackConfiguration(const RollbackConfiguration& value) { m_rollbackConfigurationHasBeenSet = true; m_rollbackConfiguration = value; } /** * <p>The rollback triggers for CloudFormation to monitor during stack creation and * updating operations, and for the specified monitoring period afterwards.</p> */ inline void SetRollbackConfiguration(RollbackConfiguration&& value) { m_rollbackConfigurationHasBeenSet = true; m_rollbackConfiguration = std::move(value); } /** * <p>The rollback triggers for CloudFormation to monitor during stack creation and * updating operations, and for the specified monitoring period afterwards.</p> */ inline CreateChangeSetRequest& WithRollbackConfiguration(const RollbackConfiguration& value) { SetRollbackConfiguration(value); return *this;} /** * <p>The rollback triggers for CloudFormation to monitor during stack creation and * updating operations, and for the specified monitoring period afterwards.</p> */ inline CreateChangeSetRequest& WithRollbackConfiguration(RollbackConfiguration&& value) { SetRollbackConfiguration(std::move(value)); return *this;} /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline const Aws::Vector<Aws::String>& GetNotificationARNs() const{ return m_notificationARNs; } /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline bool NotificationARNsHasBeenSet() const { return m_notificationARNsHasBeenSet; } /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline void SetNotificationARNs(const Aws::Vector<Aws::String>& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = value; } /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline void SetNotificationARNs(Aws::Vector<Aws::String>&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = std::move(value); } /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline CreateChangeSetRequest& WithNotificationARNs(const Aws::Vector<Aws::String>& value) { SetNotificationARNs(value); return *this;} /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline CreateChangeSetRequest& WithNotificationARNs(Aws::Vector<Aws::String>&& value) { SetNotificationARNs(std::move(value)); return *this;} /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline CreateChangeSetRequest& AddNotificationARNs(const Aws::String& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; } /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline CreateChangeSetRequest& AddNotificationARNs(Aws::String&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(std::move(value)); return *this; } /** * <p>The Amazon Resource Names (ARNs) of Amazon Simple Notification Service * (Amazon SNS) topics that CloudFormation associates with the stack. To remove all * associated notification topics, specify an empty list.</p> */ inline CreateChangeSetRequest& AddNotificationARNs(const char* value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; } /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; } /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; } /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline CreateChangeSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;} /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline CreateChangeSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;} /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline CreateChangeSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** * <p>Key-value pairs to associate with this stack. CloudFormation also propagates * these tags to resources in the stack. You can specify a maximum of 50 tags.</p> */ inline CreateChangeSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline const Aws::String& GetChangeSetName() const{ return m_changeSetName; } /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline bool ChangeSetNameHasBeenSet() const { return m_changeSetNameHasBeenSet; } /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline void SetChangeSetName(const Aws::String& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = value; } /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline void SetChangeSetName(Aws::String&& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = std::move(value); } /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline void SetChangeSetName(const char* value) { m_changeSetNameHasBeenSet = true; m_changeSetName.assign(value); } /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline CreateChangeSetRequest& WithChangeSetName(const Aws::String& value) { SetChangeSetName(value); return *this;} /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline CreateChangeSetRequest& WithChangeSetName(Aws::String&& value) { SetChangeSetName(std::move(value)); return *this;} /** * <p>The name of the change set. The name must be unique among all change sets * that are associated with the specified stack.</p> <p>A change set name can * contain only alphanumeric, case sensitive characters, and hyphens. It must start * with an alphabetical character and can't exceed 128 characters.</p> */ inline CreateChangeSetRequest& WithChangeSetName(const char* value) { SetChangeSetName(value); return *this;} /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline CreateChangeSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline CreateChangeSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** * <p>A unique identifier for this <code>CreateChangeSet</code> request. Specify * this token if you plan to retry requests so that CloudFormation knows that * you're not attempting to create another change set with the same name. You might * retry <code>CreateChangeSet</code> requests to ensure that CloudFormation * successfully received them.</p> */ inline CreateChangeSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** * <p>A description to help you identify this change set.</p> */ inline const Aws::String& GetDescription() const{ return m_description; } /** * <p>A description to help you identify this change set.</p> */ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** * <p>A description to help you identify this change set.</p> */ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** * <p>A description to help you identify this change set.</p> */ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** * <p>A description to help you identify this change set.</p> */ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** * <p>A description to help you identify this change set.</p> */ inline CreateChangeSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** * <p>A description to help you identify this change set.</p> */ inline CreateChangeSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** * <p>A description to help you identify this change set.</p> */ inline CreateChangeSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** * <p>The type of change set operation. To create a change set for a new stack, * specify <code>CREATE</code>. To create a change set for an existing stack, * specify <code>UPDATE</code>. To create a change set for an import operation, * specify <code>IMPORT</code>.</p> <p>If you create a change set for a new stack, * CloudFormation creates a stack with a unique stack ID, but no template or * resources. The stack will be in the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995">REVIEW_IN_PROGRESS</a> * state until you execute the change set.</p> <p>By default, CloudFormation * specifies <code>UPDATE</code>. You can't use the <code>UPDATE</code> type to * create a change set for a new stack or the <code>CREATE</code> type to create a * change set for an existing stack.</p> */ inline const ChangeSetType& GetChangeSetType() const{ return m_changeSetType; } /** * <p>The type of change set operation. To create a change set for a new stack, * specify <code>CREATE</code>. To create a change set for an existing stack, * specify <code>UPDATE</code>. To create a change set for an import operation, * specify <code>IMPORT</code>.</p> <p>If you create a change set for a new stack, * CloudFormation creates a stack with a unique stack ID, but no template or * resources. The stack will be in the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995">REVIEW_IN_PROGRESS</a> * state until you execute the change set.</p> <p>By default, CloudFormation * specifies <code>UPDATE</code>. You can't use the <code>UPDATE</code> type to * create a change set for a new stack or the <code>CREATE</code> type to create a * change set for an existing stack.</p> */ inline bool ChangeSetTypeHasBeenSet() const { return m_changeSetTypeHasBeenSet; } /** * <p>The type of change set operation. To create a change set for a new stack, * specify <code>CREATE</code>. To create a change set for an existing stack, * specify <code>UPDATE</code>. To create a change set for an import operation, * specify <code>IMPORT</code>.</p> <p>If you create a change set for a new stack, * CloudFormation creates a stack with a unique stack ID, but no template or * resources. The stack will be in the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995">REVIEW_IN_PROGRESS</a> * state until you execute the change set.</p> <p>By default, CloudFormation * specifies <code>UPDATE</code>. You can't use the <code>UPDATE</code> type to * create a change set for a new stack or the <code>CREATE</code> type to create a * change set for an existing stack.</p> */ inline void SetChangeSetType(const ChangeSetType& value) { m_changeSetTypeHasBeenSet = true; m_changeSetType = value; } /** * <p>The type of change set operation. To create a change set for a new stack, * specify <code>CREATE</code>. To create a change set for an existing stack, * specify <code>UPDATE</code>. To create a change set for an import operation, * specify <code>IMPORT</code>.</p> <p>If you create a change set for a new stack, * CloudFormation creates a stack with a unique stack ID, but no template or * resources. The stack will be in the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995">REVIEW_IN_PROGRESS</a> * state until you execute the change set.</p> <p>By default, CloudFormation * specifies <code>UPDATE</code>. You can't use the <code>UPDATE</code> type to * create a change set for a new stack or the <code>CREATE</code> type to create a * change set for an existing stack.</p> */ inline void SetChangeSetType(ChangeSetType&& value) { m_changeSetTypeHasBeenSet = true; m_changeSetType = std::move(value); } /** * <p>The type of change set operation. To create a change set for a new stack, * specify <code>CREATE</code>. To create a change set for an existing stack, * specify <code>UPDATE</code>. To create a change set for an import operation, * specify <code>IMPORT</code>.</p> <p>If you create a change set for a new stack, * CloudFormation creates a stack with a unique stack ID, but no template or * resources. The stack will be in the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995">REVIEW_IN_PROGRESS</a> * state until you execute the change set.</p> <p>By default, CloudFormation * specifies <code>UPDATE</code>. You can't use the <code>UPDATE</code> type to * create a change set for a new stack or the <code>CREATE</code> type to create a * change set for an existing stack.</p> */ inline CreateChangeSetRequest& WithChangeSetType(const ChangeSetType& value) { SetChangeSetType(value); return *this;} /** * <p>The type of change set operation. To create a change set for a new stack, * specify <code>CREATE</code>. To create a change set for an existing stack, * specify <code>UPDATE</code>. To create a change set for an import operation, * specify <code>IMPORT</code>.</p> <p>If you create a change set for a new stack, * CloudFormation creates a stack with a unique stack ID, but no template or * resources. The stack will be in the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html#d0e11995">REVIEW_IN_PROGRESS</a> * state until you execute the change set.</p> <p>By default, CloudFormation * specifies <code>UPDATE</code>. You can't use the <code>UPDATE</code> type to * create a change set for a new stack or the <code>CREATE</code> type to create a * change set for an existing stack.</p> */ inline CreateChangeSetRequest& WithChangeSetType(ChangeSetType&& value) { SetChangeSetType(std::move(value)); return *this;} /** * <p>The resources to import into your stack.</p> */ inline const Aws::Vector<ResourceToImport>& GetResourcesToImport() const{ return m_resourcesToImport; } /** * <p>The resources to import into your stack.</p> */ inline bool ResourcesToImportHasBeenSet() const { return m_resourcesToImportHasBeenSet; } /** * <p>The resources to import into your stack.</p> */ inline void SetResourcesToImport(const Aws::Vector<ResourceToImport>& value) { m_resourcesToImportHasBeenSet = true; m_resourcesToImport = value; } /** * <p>The resources to import into your stack.</p> */ inline void SetResourcesToImport(Aws::Vector<ResourceToImport>&& value) { m_resourcesToImportHasBeenSet = true; m_resourcesToImport = std::move(value); } /** * <p>The resources to import into your stack.</p> */ inline CreateChangeSetRequest& WithResourcesToImport(const Aws::Vector<ResourceToImport>& value) { SetResourcesToImport(value); return *this;} /** * <p>The resources to import into your stack.</p> */ inline CreateChangeSetRequest& WithResourcesToImport(Aws::Vector<ResourceToImport>&& value) { SetResourcesToImport(std::move(value)); return *this;} /** * <p>The resources to import into your stack.</p> */ inline CreateChangeSetRequest& AddResourcesToImport(const ResourceToImport& value) { m_resourcesToImportHasBeenSet = true; m_resourcesToImport.push_back(value); return *this; } /** * <p>The resources to import into your stack.</p> */ inline CreateChangeSetRequest& AddResourcesToImport(ResourceToImport&& value) { m_resourcesToImportHasBeenSet = true; m_resourcesToImport.push_back(std::move(value)); return *this; } /** * <p>Creates a change set for the all nested stacks specified in the template. The * default behavior of this action is set to <code>False</code>. To include nested * sets in a change set, specify <code>True</code>.</p> */ inline bool GetIncludeNestedStacks() const{ return m_includeNestedStacks; } /** * <p>Creates a change set for the all nested stacks specified in the template. The * default behavior of this action is set to <code>False</code>. To include nested * sets in a change set, specify <code>True</code>.</p> */ inline bool IncludeNestedStacksHasBeenSet() const { return m_includeNestedStacksHasBeenSet; } /** * <p>Creates a change set for the all nested stacks specified in the template. The * default behavior of this action is set to <code>False</code>. To include nested * sets in a change set, specify <code>True</code>.</p> */ inline void SetIncludeNestedStacks(bool value) { m_includeNestedStacksHasBeenSet = true; m_includeNestedStacks = value; } /** * <p>Creates a change set for the all nested stacks specified in the template. The * default behavior of this action is set to <code>False</code>. To include nested * sets in a change set, specify <code>True</code>.</p> */ inline CreateChangeSetRequest& WithIncludeNestedStacks(bool value) { SetIncludeNestedStacks(value); return *this;} /** * <p>Determines what action will be taken if stack creation fails. If this * parameter is specified, the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation must not be specified. This must be one of these values:</p> <ul> * <li> <p> <code>DELETE</code> - Deletes the change set if the stack creation * fails. This is only valid when the <code>ChangeSetType</code> parameter is set * to <code>CREATE</code>. If the deletion of the stack fails, the status of the * stack is <code>DELETE_FAILED</code>.</p> </li> <li> <p> <code>DO_NOTHING</code> * - if the stack creation fails, do nothing. This is equivalent to specifying * <code>true</code> for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> <li> <p> <code>ROLLBACK</code> - if the stack creation * fails, roll back the stack. This is equivalent to specifying <code>false</code> * for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> </ul> <p>For nested stacks, when the * <code>OnStackFailure</code> parameter is set to <code>DELETE</code> for the * change set for the parent stack, any failure in a child stack will cause the * parent stack creation to fail and all stacks to be deleted.</p> */ inline const OnStackFailure& GetOnStackFailure() const{ return m_onStackFailure; } /** * <p>Determines what action will be taken if stack creation fails. If this * parameter is specified, the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation must not be specified. This must be one of these values:</p> <ul> * <li> <p> <code>DELETE</code> - Deletes the change set if the stack creation * fails. This is only valid when the <code>ChangeSetType</code> parameter is set * to <code>CREATE</code>. If the deletion of the stack fails, the status of the * stack is <code>DELETE_FAILED</code>.</p> </li> <li> <p> <code>DO_NOTHING</code> * - if the stack creation fails, do nothing. This is equivalent to specifying * <code>true</code> for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> <li> <p> <code>ROLLBACK</code> - if the stack creation * fails, roll back the stack. This is equivalent to specifying <code>false</code> * for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> </ul> <p>For nested stacks, when the * <code>OnStackFailure</code> parameter is set to <code>DELETE</code> for the * change set for the parent stack, any failure in a child stack will cause the * parent stack creation to fail and all stacks to be deleted.</p> */ inline bool OnStackFailureHasBeenSet() const { return m_onStackFailureHasBeenSet; } /** * <p>Determines what action will be taken if stack creation fails. If this * parameter is specified, the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation must not be specified. This must be one of these values:</p> <ul> * <li> <p> <code>DELETE</code> - Deletes the change set if the stack creation * fails. This is only valid when the <code>ChangeSetType</code> parameter is set * to <code>CREATE</code>. If the deletion of the stack fails, the status of the * stack is <code>DELETE_FAILED</code>.</p> </li> <li> <p> <code>DO_NOTHING</code> * - if the stack creation fails, do nothing. This is equivalent to specifying * <code>true</code> for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> <li> <p> <code>ROLLBACK</code> - if the stack creation * fails, roll back the stack. This is equivalent to specifying <code>false</code> * for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> </ul> <p>For nested stacks, when the * <code>OnStackFailure</code> parameter is set to <code>DELETE</code> for the * change set for the parent stack, any failure in a child stack will cause the * parent stack creation to fail and all stacks to be deleted.</p> */ inline void SetOnStackFailure(const OnStackFailure& value) { m_onStackFailureHasBeenSet = true; m_onStackFailure = value; } /** * <p>Determines what action will be taken if stack creation fails. If this * parameter is specified, the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation must not be specified. This must be one of these values:</p> <ul> * <li> <p> <code>DELETE</code> - Deletes the change set if the stack creation * fails. This is only valid when the <code>ChangeSetType</code> parameter is set * to <code>CREATE</code>. If the deletion of the stack fails, the status of the * stack is <code>DELETE_FAILED</code>.</p> </li> <li> <p> <code>DO_NOTHING</code> * - if the stack creation fails, do nothing. This is equivalent to specifying * <code>true</code> for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> <li> <p> <code>ROLLBACK</code> - if the stack creation * fails, roll back the stack. This is equivalent to specifying <code>false</code> * for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> </ul> <p>For nested stacks, when the * <code>OnStackFailure</code> parameter is set to <code>DELETE</code> for the * change set for the parent stack, any failure in a child stack will cause the * parent stack creation to fail and all stacks to be deleted.</p> */ inline void SetOnStackFailure(OnStackFailure&& value) { m_onStackFailureHasBeenSet = true; m_onStackFailure = std::move(value); } /** * <p>Determines what action will be taken if stack creation fails. If this * parameter is specified, the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation must not be specified. This must be one of these values:</p> <ul> * <li> <p> <code>DELETE</code> - Deletes the change set if the stack creation * fails. This is only valid when the <code>ChangeSetType</code> parameter is set * to <code>CREATE</code>. If the deletion of the stack fails, the status of the * stack is <code>DELETE_FAILED</code>.</p> </li> <li> <p> <code>DO_NOTHING</code> * - if the stack creation fails, do nothing. This is equivalent to specifying * <code>true</code> for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> <li> <p> <code>ROLLBACK</code> - if the stack creation * fails, roll back the stack. This is equivalent to specifying <code>false</code> * for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> </ul> <p>For nested stacks, when the * <code>OnStackFailure</code> parameter is set to <code>DELETE</code> for the * change set for the parent stack, any failure in a child stack will cause the * parent stack creation to fail and all stacks to be deleted.</p> */ inline CreateChangeSetRequest& WithOnStackFailure(const OnStackFailure& value) { SetOnStackFailure(value); return *this;} /** * <p>Determines what action will be taken if stack creation fails. If this * parameter is specified, the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation must not be specified. This must be one of these values:</p> <ul> * <li> <p> <code>DELETE</code> - Deletes the change set if the stack creation * fails. This is only valid when the <code>ChangeSetType</code> parameter is set * to <code>CREATE</code>. If the deletion of the stack fails, the status of the * stack is <code>DELETE_FAILED</code>.</p> </li> <li> <p> <code>DO_NOTHING</code> * - if the stack creation fails, do nothing. This is equivalent to specifying * <code>true</code> for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> <li> <p> <code>ROLLBACK</code> - if the stack creation * fails, roll back the stack. This is equivalent to specifying <code>false</code> * for the <code>DisableRollback</code> parameter to the <a * href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> * API operation.</p> </li> </ul> <p>For nested stacks, when the * <code>OnStackFailure</code> parameter is set to <code>DELETE</code> for the * change set for the parent stack, any failure in a child stack will cause the * parent stack creation to fail and all stacks to be deleted.</p> */ inline CreateChangeSetRequest& WithOnStackFailure(OnStackFailure&& value) { SetOnStackFailure(std::move(value)); return *this;} private: Aws::String m_stackName; bool m_stackNameHasBeenSet = false; Aws::String m_templateBody; bool m_templateBodyHasBeenSet = false; Aws::String m_templateURL; bool m_templateURLHasBeenSet = false; bool m_usePreviousTemplate; bool m_usePreviousTemplateHasBeenSet = false; Aws::Vector<Parameter> m_parameters; bool m_parametersHasBeenSet = false; Aws::Vector<Capability> m_capabilities; bool m_capabilitiesHasBeenSet = false; Aws::Vector<Aws::String> m_resourceTypes; bool m_resourceTypesHasBeenSet = false; Aws::String m_roleARN; bool m_roleARNHasBeenSet = false; RollbackConfiguration m_rollbackConfiguration; bool m_rollbackConfigurationHasBeenSet = false; Aws::Vector<Aws::String> m_notificationARNs; bool m_notificationARNsHasBeenSet = false; Aws::Vector<Tag> m_tags; bool m_tagsHasBeenSet = false; Aws::String m_changeSetName; bool m_changeSetNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ChangeSetType m_changeSetType; bool m_changeSetTypeHasBeenSet = false; Aws::Vector<ResourceToImport> m_resourcesToImport; bool m_resourcesToImportHasBeenSet = false; bool m_includeNestedStacks; bool m_includeNestedStacksHasBeenSet = false; OnStackFailure m_onStackFailure; bool m_onStackFailureHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws
f36218a6c84bd321c9e22dbc1e546e5725b9a295
b8b833ef45ee3a37e5b1737558663e081363d8c7
/Core/Protocol/MessageServer.cpp
1fa03f527c0a998c41a0190eb034a7db92c3f53a
[]
no_license
Reflexe/Ziqe
25da769da5b41e9fc193e5545e2d28cf928122aa
a76a901d6adf9f5e368f3c7e35d0e56b00754794
refs/heads/master
2020-05-19T09:00:51.921555
2019-05-04T19:33:00
2019-05-04T19:33:00
184,935,871
0
0
null
null
null
null
UTF-8
C++
false
false
191
cpp
MessageServer.cpp
#include "MessageServer.hpp" namespace Ziqe { namespace Protocol { MessageServer::MessageServer(Base::UniquePointer<Net::Server> &&server) { } } // namespace Protocol } // namespace Ziqe
ba936b3e36509a947c9e43760e105a715f87feb2
020cc9b0ff2d84a9a46c7a1ca88cf787097af5da
/QtSUA/SUA/ImageStatus.h
f174e445fe97424e1c38c8283a9194fe76b48286
[]
no_license
SerikZ5/SUA
2b0b6c39e784fe5646f960d820ee9bfb28cc35d6
baa612f57eb4d2449cb707ac221b81b21eebbfe0
refs/heads/master
2020-12-03T03:51:35.105790
2018-09-11T20:16:50
2018-09-11T20:16:50
95,782,236
0
0
null
null
null
null
UTF-8
C++
false
false
394
h
ImageStatus.h
#ifndef IMAGE_STATUS_H #define IMAGE_STATUS_H #include <QLabel> #include <QMovie> #include <QPixmap> enum SUAImages { GREEN, GREY, GREEN_BLINK, YELLOW_BLINK, }; class ImageStatus { public: ImageStatus(); virtual ~ImageStatus(); void SetImage(QLabel* label, SUAImages color); private: QMovie* yellowBlink; QMovie* greenBlink; QPixmap* grey; QPixmap* green; }; #endif
85304bffdb6b8a8e49d5ad8d68daab07d554c29d
2e5c75f3a893ae04b5054cecb73dbe929c8cd7c8
/src/pctool/Anyka IP Camera/Anyka IP Camera/Anyka IP Camera/Aimer39RTSPClient.h
b3c5fe91e8ffe547b0ba662e9327ec498da066b3
[]
no_license
amartol/videorec
385192b1aca0acc42c24c700b93f4b0bc28a483f
a0b2372b27552c6326218799668d773f175cda6b
refs/heads/master
2022-12-05T01:09:31.291281
2020-08-25T08:39:26
2020-08-25T08:39:26
72,375,362
5
0
null
null
null
null
UTF-8
C++
false
false
7,850
h
Aimer39RTSPClient.h
#pragma once #include <liveMedia.hh> #include <BasicUsageEnvironment.hh> #include <string> #include <vector> #include "ThreadBase.h" #include "AutoLock.h" #include "InterfaceClass.h" #include "Clock.h" using namespace std; class CAimer39RTSPClient; typedef enum StreamType_en { STREAM_UNKNOWN = -1, STREAM_AUDIO = 0, STREAM_VIDEO, STREAM_TYPE_CNT }STREAM_TYPE, *PSTREAM_TYPE; class StreamClientState { public: StreamClientState(); virtual ~StreamClientState(); public: MediaSubsessionIterator* iter; MediaSession* session; MediaSubsession* subsession; TaskToken streamTimerTask; double duration; }; // If you're streaming just a single stream (i.e., just from a single URL, once), then you can define and use just a single // "StreamClientState" structure, as a global variable in your application. However, because - in this demo application - we're // showing how to play multiple streams, concurrently, we can't do that. Instead, we have to have a separate "StreamClientState" // structure for each "RTSPClient". To do this, we subclass "RTSPClient", and add a "StreamClientState" field to the subclass: class ourRTSPClient: public RTSPClient { public: static ourRTSPClient* createNew(UsageEnvironment& env, char const* rtspURL, int verbosityLevel = 0, char const* applicationName = NULL, portNumBits tunnelOverHTTPPortNum = 0); protected: ourRTSPClient(UsageEnvironment& env, char const* rtspURL, int verbosityLevel, char const* applicationName, portNumBits tunnelOverHTTPPortNum); // called only by createNew(); virtual ~ourRTSPClient(); public: StreamClientState scs; }; // Define a data sink (a subclass of "MediaSink") to receive the data for each subsession (i.e., each audio or video 'substream'). // In practice, this might be a class (or a chain of classes) that decodes and then renders the incoming audio or video. // Or it might be a "FileSink", for outputting the received data into a file (as is done by the "openRTSP" application). // In this example code, however, we define a simple 'dummy' sink that receives incoming data, but does nothing with it. class DummySink: public MediaSink { public: static DummySink* createNew(UsageEnvironment& env, MediaSubsession& subsession, // identifies the kind of data that's being received CAimer39RTSPClient * AimerClient, char const* streamId = NULL); // identifies the stream itself (optional) void play(); void pause(); private: DummySink(UsageEnvironment& env, MediaSubsession& subsession, CAimer39RTSPClient * AimerClient, char const* streamId); // called only by "createNew()" virtual ~DummySink(); static void afterGettingFrame(void* clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds); void afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds); void calcNPTandInform(); private: // redefined virtual functions: virtual Boolean continuePlaying(); private: u_int8_t* fReceiveBuffer; MediaSubsession& fSubsession; CAimer39RTSPClient * fAimerClient; double fLassNPT; char* fStreamId; Boolean fIsPause; struct timeval fSyncTime; u_int32_t fSyncTimestamp; }; typedef unsigned char BYTE; typedef unsigned char * PBYTE; typedef void (__stdcall *CLIENTCALLBACK)(void * pLParam, void * pRParam); typedef void (__stdcall *STARTPLAYCB)(double duration, double startDuration, void * pLParam, void * pRParam); typedef void (__stdcall *PLAYNPTCB)(double sNPT, const char * mediumName, void * pLParam, void * pRParam); class CAimer39RTSPClient : protected CThreadBase { public: static CAimer39RTSPClient * CreateNew(); virtual ~CAimer39RTSPClient(void); uint64_t GetID(); /* open the rtsp url eg: rtsp://192.168.x.x/WebCamera720p */ int OpenURL( const char * strURL ); int Close(); int GetURL(string & strURL); /* Is our client connect server success @ret if return 0 success, otherwise the error code identifier, hint why failed to connect server. you can use GetLastError to receive the error string message. */ int IsPrepare( bool & bIsPrepare ); const char * GetLastError(); int Play(); int StartPlay(double dDuration); int PausePlay(); int StopPlay(); /* get net bits rate per second */ double GetBitsRate(); double GetBitsRatePerSec(); /* get this client received how many stream from server */ int GetStreamCount( unsigned int & nStreamCnt ); /* get stream is type @arg nStreamNum[in] the stream number @arg pType[out] the type of stream */ int GetStreamType( unsigned int nStreamNum, STREAM_TYPE & Type ); int GetVideoHeight( unsigned int nStreamNum ); int GetVideoWidth( unsigned int nStreamNum ); int GetVideoFPS( unsigned int nStreamNum ); int NoNeedStream( unsigned int nStreamNum ); /* register the data sink @arg type[in] this sink will receive what type of stream @arg pISink[in] the sink interface point */ int RegisterSink( STREAM_TYPE type, IDataSink * pISink ); int UnregisterSink( IDataSink * pISink ); void RegisterFinishCallback(CLIENTCALLBACK pCallback, void * pParam) { m_pFinishCallback = pCallback; m_pCallBackParam = pParam; } void RegisterDisConnCallback(CLIENTCALLBACK pCallback, void * pParam, int nDisConnLimmitMSec = -1) { m_pDisConnCallback = pCallback; m_pDCCallBackParam = pParam; m_nDisConnLimmtMSec = nDisConnLimmitMSec; } void RegistrerStartPlayCallback(STARTPLAYCB pCallback, void * pParam) { m_pStartPlayCB = pCallback; m_pStartPlayCBP = pParam; } void RegistrerPlayNPTCallback(PLAYNPTCB pCallback, void * pParam, double dUpdateInterval) { m_pPlayNPTCB = pCallback; m_pPlayNPTCBP = pParam; m_dNPTInformInterval = dUpdateInterval; } private: static CAimer39RTSPClient * findClient( ourRTSPClient * pkey ); static void continueAfterDESCRIBE(RTSPClient* rtspClient, int resultCode, char* resultString); static void continueAfterSETUP(RTSPClient* rtspClient, int resultCode, char* resultString); static void continueAfterPLAY(RTSPClient* rtspClient, int resultCode, char* resultString); static void setupNextSubsession(RTSPClient* rtspClient); static void shutdownStream( RTSPClient* rtspClient ); static void subsessionAfterPlaying(void* clientData); static void subsessionByeHandler(void* clientData); static void streamTimerHandler(void* clientData); MediaSubsession * findSubSessionByStreamNum( unsigned int nStreamNum ); void CalcBitsRatePerSec(); protected: CAimer39RTSPClient(void); virtual void Run(); private: friend class DummySink; char m_eventLoopWatchVariable; bool m_bIsPrepare, m_bIsPlay, m_bIsShutDown; int m_errorCode; uint64_t m_nRecvBytes, m_nRecvVideoBytes, m_nLastMsSinceStart, m_nRecvBytesSec, m_nID; string m_rtspURL; string m_lastErrorMsg; CLIENTCALLBACK m_pFinishCallback; void * m_pCallBackParam; CLIENTCALLBACK m_pDisConnCallback; void * m_pDCCallBackParam; int m_nDisConnLimmtMSec; STARTPLAYCB m_pStartPlayCB; void * m_pStartPlayCBP; PLAYNPTCB m_pPlayNPTCB; void * m_pPlayNPTCBP; double m_dNPTInformInterval; double m_dBitsRatePerSec; ourRTSPClient * m_pRTSPClient; TaskScheduler * m_Scheduler; UsageEnvironment * m_Env; vector<IDataSink *> m_aVecDataSink[STREAM_TYPE_CNT]; vector<MediaSubsession *> m_vecNoNeedStream; CriticalSection m_cs; CClock m_StaticClock; static uint64_t m_nCount; static CriticalSection m_cs4Create; static vector<CAimer39RTSPClient *> vecAllClient; };
bc1c6fa24853c0732126836cf53e270c0a0ab6df
5f8f05efe41fcbcec3d91d94bb17758e911f6afa
/code/effective_stl/Item36了解copy_if的正确实现/item36/item36.cpp
7af129452a82cd8de2e8978750870c0400ae1af8
[]
no_license
f0xxx/ficsCode
ca2f44fb8e6a377702959b30dd791ac183154c55
7b3c0a514e15f7e0e84bb999fb57b228d2fc2366
refs/heads/master
2020-12-25T19:15:10.388790
2017-12-01T07:14:26
2017-12-02T06:02:22
17,135,414
1
0
null
null
null
null
UTF-8
C++
false
false
1,175
cpp
item36.cpp
// item36.cpp : Defines the entry point for the console application. // #include <algorithm> #include <vector> #include <functional> #include <iostream> using namespace std; int isDefective(int w) { if(w>10) return 1; else return 0; } //template<typename InputIterator, // 一个不很正确的 //typename OutputIterator, // copy_if实现 //typename Predicate> //OutputIterator copy_if(InputIterator begin, // InputIterator end, // OutputIterator destBegin, Predicate p) //{ // return remove_copy_if(begin, end, destBegin, not1(p));//函数p无法适配not1 //} template<typename InputIterator, // 一个copy_if的 typename OutputIterator, // 正确实现 typename Predicate> OutputIterator copy_if(InputIterator begin, InputIterator end, OutputIterator destBegin, Predicate p) { while (begin != end) { if (p(*begin))*destBegin++ = *begin; ++begin; } return destBegin; } int main(int argc, char* argv[]) { int data[]={1,313,41,45,6,7,2,3}; vector<int> widgets(data,data+8); copy_if(widgets.begin(), widgets.end(), ostream_iterator<int>(cerr, "\n"), isDefective); return 0; }
2911669244c0e6d192ced6e29e9be68b994afc58
d347a13cd2bb18a0d5a2ba60c6010f929f0ef1c3
/DuiLibTest1/DuiMenu.h
5c3433c1c06b86b60e356dcf8e2ec1dd83125f7c
[]
no_license
TLScottChen/DuiLibTest1
563171dc41ca183f05d750e39dfd22dd5d733e8d
8ce38835e2ebc2c787cebe71be9f0414d7dd2fa4
refs/heads/master
2022-12-26T13:08:36.219537
2020-10-12T09:31:11
2020-10-12T09:31:11
303,265,230
0
0
null
null
null
null
GB18030
C++
false
false
2,319
h
DuiMenu.h
#pragma once // 此处需要包含duilib的头文件#include <UIlib.h>那一段,详细代码请见前面教程 #pragma once #include <UIlib.h> using namespace DuiLib; //class CDuiMenu : public WindowImplBase //{ //protected: // virtual ~CDuiMenu(){}; // 私有化析构函数,这样此对象只能通过new来生成,而不能直接定义变量。就保证了delete this不会出错 // CDuiString m_strXMLPath; // //public: // explicit CDuiMenu(LPCTSTR pszXMLPath) : m_strXMLPath(pszXMLPath){} // virtual LPCTSTR GetWindowClassName()const{ return _T("CDuiMenu "); } // virtual CDuiString GetSkinFolder() { return _T(""); } // virtual CDuiString GetSkinFile() { return m_strXMLPath; } // virtual void OnFinalMessage(HWND hWnd){ delete this; } // // virtual LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) // { // Close(); // bHandled = FALSE; // return 0; // } // // void Init(HWND hWndParent, POINT ptPos) // { // Create(hWndParent, _T("MenuWnd"), UI_WNDSTYLE_FRAME, WS_EX_WINDOWEDGE); // ::ClientToScreen(hWndParent, &ptPos); // ::SetWindowPos(*this, NULL, ptPos.x, ptPos.y, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE); // } // // virtual LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) // { // LRESULT lRes = 0; // BOOL bHandled = TRUE; // // switch (uMsg) // { // case WM_KILLFOCUS: // lRes = OnKillFocus(uMsg, wParam, lParam, bHandled); // break; // default: // bHandled = FALSE; // } // // if (bHandled || m_PaintManager.MessageHandler(uMsg, wParam, lParam, lRes)) // { // return lRes; // } // // return __super::HandleMessage(uMsg, wParam, lParam); // } //}; // //#pragma once #include "duilib.h" class CMenuWnd : public CXMLWnd { public: explicit CMenuWnd(LPCTSTR pszXMLPath); protected: virtual ~CMenuWnd(); // 私有化析构函数,这样此对象只能通过new来生成,而不能直接定义变量。就保证了delete this不会出错 public: void Init(HWND hWndParent, POINT ptPos); virtual void OnFinalMessage(HWND hWnd); virtual LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam); virtual LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); };
b0c977dd35ff79ace32bbd183654a3e3a055f2f9
bede44681b37e283366f6380b1c473fa14660b37
/源.cpp
40f0ebbe57e4e41195150d252a8032811faa2c52
[]
no_license
chile-zhong/testcpp
d8debc28fa50a50a20a25260ae93b6de4055b465
4f6130dccb31a8d5b69b93bf601c01bcaf434404
refs/heads/master
2020-07-24T13:23:40.826853
2019-09-18T10:37:29
2019-09-18T10:37:29
207,941,871
1
0
null
null
null
null
GB18030
C++
false
false
2,556
cpp
源.cpp
#include<iostream> using namespace std; //定义一个链表节点 struct ListNode { int value; ListNode* next; }; //插入一个新节点到链表中(放在链表头部) //void CreateList(ListNode*& head, int data) //{ // //创建新节点 // ListNode* p = (ListNode*)malloc(sizeof(ListNode)); // p->value = data; // p->next = NULL; // // if (head == NULL) // { // head = p; // return; // } // p->next = head; // head = p; //} //void printList(ListNode* head) //{ // ListNode* p = head; // while (p != NULL) // { // cout << p->value << " "; // p = p->next; // } // cout << endl; //} //递归方式:实现单链表反转 //ListNode* ReverseList(ListNode* head) //{ // //递归终止条件:找到链表最后一个结点 // if (head == NULL || head->next == NULL) // return head; // else // { // ListNode* newhead = ReverseList(head->next);//先反转后面的链表,从最后面的两个结点开始反转,依次向前 // head->next->next = head;//将后一个链表结点指向前一个结点 // head->next = NULL;//将原链表中前一个结点指向后一个结点的指向关系断开 // return newhead; // } //} //非递归方式:实现单链表反转 ListNode* reverseList2(ListNode* head) { if (head == NULL || head->next == NULL) return head; ListNode* prev = head; ListNode* cur = head->next; ListNode* temp = head->next->next; while (cur) { temp = cur->next; //temp作为中间节点,记录当前结点的下一个节点的位置 cur->next = prev; //当前结点指向前一个节点 prev = cur; //指针后移 cur = temp; //指针后移,处理下一个节点 } head->next = NULL; //while结束后,将翻转后的最后一个节点(即翻转前的第一个结点head)的链域置为NULL return prev; } void CreateList(ListNode*& head, int data) { ListNode* p = (ListNode*)malloc(sizeof(ListNode)); p->value = data; p->next = NULL; if (head==NULL) { head = p; return; } p->next = head; head = p; } void printList(ListNode* head) { ListNode* p = head; while (p != NULL) { cout << p->value << " "; p = p->next; } cout << endl; } ListNode* ReverseList(ListNode* head) { //ListNode* p = head; if (head==NULL||head->next==NULL) { return head; } else { ListNode* newNode = ReverseList(head->next); head->next->next = head; head->next = NULL; return newNode; } } int main() { ListNode* head = NULL; for (int i = 0; i < 9; i++) CreateList(head, i); printList(head); head = ReverseList(head); printList(head); system("pause"); return 0; }
5cedb858e075820f418bd13c593e7b728b730dda
af94701f4a135fc0cccdba621802fff98a64290b
/Libs/Pila/Pila.h
b74d86d21dd5b82284822a5ad953a742b8a5720d
[]
no_license
joclpacheb/Data_Structures_Project_UCLA_DCYT
8be2e5a4a02b3e5b77f745581370df1923be1d58
75fc745b091000d1420b7f0f2bf1a17dbd792d81
refs/heads/master
2020-09-07T15:22:15.314643
2019-11-28T20:20:42
2019-11-28T20:20:42
220,826,318
0
0
null
null
null
null
UTF-8
C++
false
false
643
h
Pila.h
#ifndef Pila_H #define Pila_H #include <string> template <class Tipo> class Pila; #ifndef NODOPILA_H #define NODOPILA_H template <class Tipo> class Nodopila { public: Tipo info; Nodopila<Tipo>* ap; friend class Pila<Tipo>; }; #endif template <class Tipo> class Pila { typedef Nodopila<Tipo>* Apuntapila; public: Apuntapila Tope; Pila(); bool Vacia(); bool Llena(); bool Insertar(Tipo Valor); bool Remover(Tipo &Valor); Apuntapila ObtTope(); void AsigTope(Apuntapila p); Tipo ObtInfo(Nodopila<Tipo> *p); void AsigInfo(Nodopila<Tipo> *p,Tipo x); int Total(); }; #endif
487647ae91f0747d4c5e44f5389b19bc8bb591ba
664efbc043b5ddf7068cf30babd09f381f545e9f
/C++/lesson17-江湖恩怨/main.cpp
f8e0dde513959ae232138cacaa53721e9ca9ef2a
[]
no_license
kindlyde/Cpp-Exercises
1e5f923d8f26774d1216860cfa0403f2cd0773c7
ada4c2da910e21b57b5a30cb36068894e682ab1b
refs/heads/master
2020-07-04T07:19:33.201078
2015-08-30T14:57:44
2015-08-30T14:57:44
41,629,869
0
0
null
null
null
null
GB18030
C++
false
false
1,128
cpp
main.cpp
#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ class Boss{ private: static Boss* cintance; Boss() { } public: static Boss* get_boss() { if(cintance == NULL) { cout<<"new get_boss()"<<endl; cintance = new Boss(); } return cintance; } int fight() { return 10; } }; Boss* Boss::cintance = NULL; class Master{ public: //声明为虚函数,在运行时才确定调用的哪个函数 virtual int eight_sword_kill() { return 8; } }; class New_master: public Master { public: virtual int eight_sword_kill() { return Master::eight_sword_kill() * 2; } }; void PK(Master* master, Boss* boss) { int k = master->eight_sword_kill(); int b = boss->fight(); if(k < b) { cout<<"master is killed..."<<endl; } else { cout<<"boss is killed..."<<endl; } } int main(int argc, char *argv[]) { Boss* boss = Boss::get_boss(); Master m; cout<<"master vs boss"<<endl; PK(&m, boss); New_master n; cout<<"new master vs boss"<<endl; PK(&n, boss); return 0; }
66c2808dbcef8732b427f6a5e3e689d951bb508c
b4eaabe23599150524b7300c124545e83e6327f7
/CTriangulo.cpp
d4e4fe7d88e4c70cf15dff3b65619b4c15acbfb2
[]
no_license
Hildiu/PoligonosRegulares
293adcde8b670d705bdb427db49f6083d72cf2d1
f19a4d279dd014212749c953ecba03424763d270
refs/heads/master
2020-06-11T02:02:33.490049
2019-06-26T03:27:37
2019-06-26T03:27:37
193,822,106
0
0
null
null
null
null
UTF-8
C++
false
false
291
cpp
CTriangulo.cpp
// // Created by Maria Hilda Bermejo on 11/18/18. // #include "CTriangulo.h" CTriangulo::CTriangulo(TipoNumerico lado):CPoligono(lado) { } TipoNumerico CTriangulo::Apotema() { return (m_lado * sqrt(3)/6.0); } TipoNumerico CTriangulo::SemiPerimetro() { return (3.0 * m_lado/2.0); }
f6f8570542de328d831401f193f6151a1f775ddc
b28aa544e8421d041b1c868352d16744c106e26e
/casa/prefixed_expressions.cc
4a2d1545183bf289de74c2a69423ba9402452d32
[]
no_license
julia498/test
14770ba84e49c2aab1f1475273a58bda329e6169
1470a5189d1be65709d7538af27e7f6595e54f44
refs/heads/master
2020-03-30T02:39:16.539489
2019-03-10T11:03:49
2019-03-10T11:03:49
150,641,635
0
0
null
null
null
null
UTF-8
C++
false
false
309
cc
prefixed_expressions.cc
#include <iostream> using namespace std; #include <cmath> int expressio() { char c; cin >> c; if (c == '+') return expressio() + expressio(); if (c == '-') return expressio() - expressio(); if (c == '*') return expressio() * expressio(); return c - '0'; } int main() { cout << expressio() << endl; }
cb4396c92ed699b54cbf27d9b4f33b44863711fc
4f06df6e45c2d1ce7c20061428fbbd404a0320ed
/soalno3.cpp
4ed08e89ed71c5330cb73ee866cc9e7e94158153
[]
no_license
ambartri3/TugasPTS1
1f1b1e09782ea304ab88e5c5abb9796d4d96e7bb
e1aa4808ee1c9e5a4ef11c6b3408d7b7a6867522
refs/heads/master
2021-08-07T15:17:23.939002
2017-11-08T11:41:12
2017-11-08T11:41:12
105,435,914
0
0
null
null
null
null
UTF-8
C++
false
false
123
cpp
soalno3.cpp
#include <iostream> using namespace std; int main() { int C; for (C=0;C<6;C++) { cout<<"malam minggu sendiri"<<endl; } }
c432d2deb24988f6113c1883eeb6e6020107511b
037a33c4d9d50fbc439a8fda8652a26f857897d9
/ful-of-error-template.cpp
b2535da97c7edf06719e9652aca4cff73005a08e
[]
no_license
terminal-guy/CPP-BOOTCAMP
435cf34f2ecad891192b1453bf9015420d2c34dd
435af1b87889ec79d277f493eac6561375f02ebc
refs/heads/master
2022-11-14T09:02:06.567570
2020-07-08T08:18:55
2020-07-08T08:18:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
249
cpp
ful-of-error-template.cpp
#include <iostream> #include "adder.h" template <typename T> T adder(T a, T b){ return 0; } int main(){ int v1 = 4; int v2 = 4; float v3 = 5.6; float v4 = 7.5; std::cout << adder(v1, v2) << std:: endl; return 0; }
3f3fd1efaac1511b861acf350eb8735804ce9cf8
7ea618b70e81a9478e896949ab99995b089fe8de
/libsrc/blitz2/src/control_channel.cc
0669c80ff5bc860b6e047428d956069885d6171b
[]
no_license
rickyu/mlsimgsearch
bab0cc11901ac3adf652a7f4daeaa01721b6b9e5
7fa89f058333af65c27e58d952a7ebbcbd94b46f
refs/heads/master
2020-03-22T21:01:41.687118
2018-07-12T02:48:09
2018-07-12T02:48:09
140,650,471
0
1
null
null
null
null
UTF-8
C++
false
false
3,308
cc
control_channel.cc
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <blitz2/control_channel.h> namespace blitz2 { void ControlChannel::OnRead() { LOG_DEBUG(logger_, "ControlChannel::OnRead fd=%d", fd_); int newfd = -1; int32_t type = 0; while(1) { int ret = ReadFd(&newfd, &type); if(ret == 0) { // call event processor LOG_DEBUG(logger_, "fd=%d recvfd=%d type=%d", fd_, newfd, type); recv_fd_callback_(this, newfd, type); } else if(ret==2) { // read buffer is empty. break; } else { LOG_ERROR(logger_, "fd=%d errno=%d", fd_, errno); RealClose(ret==1?1:-1); break; } } } void ControlChannel::OnWrite() { while(!fds_.empty()) { TransferedFd tfd = fds_.front(); int ret = WriteFd(tfd.fd, tfd.type); LOG_DEBUG(logger_, "fd=%d fdtransfered=%d", fd_, tfd.fd); if(ret==0) { fds_.pop(); break; } else { LOG_ERROR(logger_, "fd=%d errno=%d", fd_, errno); RealClose(-2); } } } void ControlChannel::SendFd(int fd_to_send, int type) { if(!fds_.empty()) { TransferedFd tfd = {fd_to_send, type}; fds_.push(tfd); return; } WriteFd(fd_to_send, type); } int ControlChannel::WriteFd(int sendfd, int32_t type) { struct msghdr msg; struct iovec iov[1]; union { struct cmsghdr cm; char control[CMSG_SPACE(sizeof(int))]; } control_un; struct cmsghdr *cmptr; msg.msg_control = control_un.control; msg.msg_controllen = sizeof(control_un.control); cmptr = CMSG_FIRSTHDR(&msg); cmptr->cmsg_len = CMSG_LEN(sizeof(int)); cmptr->cmsg_level = SOL_SOCKET; cmptr->cmsg_type = SCM_RIGHTS; *((int *) CMSG_DATA(cmptr)) = sendfd; msg.msg_name = NULL; msg.msg_namelen = 0; iov[0].iov_base = &type; iov[0].iov_len = sizeof(int32_t); msg.msg_iov = iov; msg.msg_iovlen = 1; do { ssize_t n = sendmsg(fd_, &msg, 0); ::close(sendfd); LOG_DEBUG(logger_, "sendmsg=%ld fd=%d", n, fd_); if(n==sizeof(int32_t)) { return 0; } else { if(n==-1 && errno==EINTR) { continue; } return -1; } } while(1); return -2; } int ControlChannel::ReadFd(int* recvfd, int32_t* type) { struct msghdr msg; union { struct cmsghdr cm; char control[CMSG_SPACE(sizeof(int))]; } control_un; struct cmsghdr *cmptr; msg.msg_control = control_un.control; msg.msg_controllen = sizeof(control_un.control); msg.msg_name = NULL; msg.msg_namelen = 0; struct iovec iov[1]; iov[0].iov_base = type; iov[0].iov_len = sizeof(int32_t); msg.msg_iov = iov; msg.msg_iovlen = 1; do { ssize_t n = ::recvmsg(fd_, &msg, 0); if(n==sizeof(int32_t)) { if ( (cmptr = CMSG_FIRSTHDR(&msg)) != NULL && cmptr->cmsg_len == CMSG_LEN(sizeof(int))) { if (cmptr->cmsg_level != SOL_SOCKET) return -2; if (cmptr->cmsg_type != SCM_RIGHTS) return -2; *recvfd = *((int *) CMSG_DATA(cmptr)); return 0; } else { *recvfd = -1; /* descriptor was not passed */ return -2; } } else if(n==0) { return 1; } else { if(errno==EAGAIN) { return 2; } return -1; } } while(1); return -3; } } // namespace blitz2
3c665e72a49e66d52fd7c3cf69f0a56b7cbd4dfc
81b12da2eac22050156455eeb7367bc8e549e5bd
/sfml template/BronzeWorking.cpp
f38f717fdec097f7ce4e6b22cd5e561c19dd25cf
[]
no_license
SaintAllary/War-of-Civilization
9ced788dd8d6239e0f1ce6e399d4c42d844939c3
e58a832bccad3ae913ea5455723db6fd7e7c606e
refs/heads/master
2022-05-03T13:07:51.429719
2022-03-27T11:10:01
2022-03-27T11:10:01
237,458,831
3
0
null
null
null
null
UTF-8
C++
false
false
100
cpp
BronzeWorking.cpp
#include "BronzeWorking.h" BronzeWorking::BronzeWorking() : Technologies("Bronze Working", 0, 1) {}
6a990849a237dcb488cd331c04688759cfcb61f5
10ecb0cf2a736a631bf781e0412602614d51426c
/RC_car_plataformIO/src/src/OneShot125/OneShot125.h
79e711b8cfbb7a42cd5931c8fff0f878f1b7626d
[]
no_license
ttvAmavisca/rc_car
a734059ac57da5b3c3461a709e32df247d8e8376
4e21577a01120447f1fbdf36b34585ce83973d88
refs/heads/master
2022-12-12T22:50:10.430904
2019-11-06T22:52:11
2019-11-06T22:52:11
168,256,226
0
0
null
2022-12-08T05:26:56
2019-01-30T01:11:01
C++
UTF-8
C++
false
false
186
h
OneShot125.h
#pragma once #include <cstdint> class OneShot125 { public: OneShot125(); void Init() ; void Arm() ; void Disarm() ; void Update(uint16_t motor_power); };
bd032495b2ffb05109bf98da02bb1486cab7ae82
a7832d00f002561d154ebcc6874e9738c7efeba4
/ex2.cpp
adf47567fe116c932b8660d0e595286a0856b8d4
[]
no_license
281613520/AnKh
a2ebdc843566cacaf84d3014192316855114e3af
4146a339c52fefd24fb6ed1d77c48244f568372f
refs/heads/master
2021-01-17T07:12:18.167402
2016-12-19T15:41:17
2016-12-19T15:41:17
52,346,162
0
0
null
null
null
null
UTF-8
C++
false
false
712
cpp
ex2.cpp
#include<iostream> #include<vector> using namespace std; void MaxSum(vector<int> &a, int N) { int thissum, maxsum; int i; int first, last; int tmpf, tmpl; thissum = maxsum = 0; tmpf = 1; for (i = 1; i < N; i++) { if (thissum >= 0) { thissum += a[i]; tmpl = i; } else { thissum = 0; thissum += a[i]; tmpf = i; tmpl = i; } if (thissum > maxsum || thissum == 0) { maxsum = thissum; first = tmpf; last = tmpl; } } cout << maxsum << " " << a[first] << " " << a[last] << endl; } int main() { vector<int> number; int i; while (cin >> i) { number.push_back(i); } MaxSum(number, number.size()); return 0; }
b0e66e723980a68f29ac3ab1a9adc0961b9c9192
de80b91a12b10bd962b59a89b2badbb83a0193da
/ClientProject/Mof/RatchetNClankCopy/RatchetApplication/Game/GameSystem/Text/Menu.cpp
46923601b7140021414a526391aa7757dffc40ef
[ "MIT" ]
permissive
OIC-Shinchaemin/RatchetNclank-PrivateCopy
8845eea799b3346646c8c93435c0149e842dede8
e2e646e89ef3c29d474a503f5ca80405c4c676c9
refs/heads/main
2023-08-15T06:36:05.244293
2021-10-08T00:34:48
2021-10-08T00:34:48
350,923,064
0
0
MIT
2021-10-06T11:05:03
2021-03-24T02:35:36
C++
SHIFT_JIS
C++
false
false
4,934
cpp
Menu.cpp
#include "Menu.h" ratchet::game::gamesystem::text::TextMenu::TextMenu() : _position(), _space(), _count(0), _title(NULL), _item(NULL), _select(0), _show(false), _enter(false), _rectangle(), _header_rectangle(), _drag(false) { _space.x = 12.0f; _space.y = 8.0f; } ratchet::game::gamesystem::text::TextMenu::~TextMenu() { Release(); } void ratchet::game::gamesystem::text::TextMenu::Create(char* pTitle, char** pItem, int cnt) { this->Release(); //引数の文字列を保存 _count = cnt; _title = (char*)malloc(strlen(pTitle) + 1); strcpy(_title, pTitle); _item = (char**)malloc(sizeof(char*) * cnt); for (int i = 0; i < _count; i++) { _item[i] = (char*)malloc(strlen(pItem[i]) + 1); strcpy(_item[i], pItem[i]); } //メニューの文字列の最大、最少矩形を求める CRectangle trec; CGraphicsUtilities::CalculateStringRect(0, 0, _title, trec); _rectangle.Right = MOF_MAX(_rectangle.Right, trec.Right + _space.x * 2); _rectangle.Bottom += trec.Bottom + _space.y * 2; _header_rectangle = _rectangle; for (int i = 0; i < _count; i++) { CGraphicsUtilities::CalculateStringRect(0, 0, _item[i], trec); _header_rectangle.Right = _rectangle.Right = MOF_MAX(_rectangle.Right, trec.Right + _space.x * 2); _rectangle.Bottom += trec.Bottom + _space.y; } _rectangle.Bottom += _space.y; } void ratchet::game::gamesystem::text::TextMenu::Release(void) { if (_title) { free(_title); _title = NULL; } if (_item) { for (int i = 0; i < _count; i++) { free(_item[i]); } free(_item); _item = NULL; _count = 0; } _rectangle = CRectangle(0, 0, 0, 0); } void ratchet::game::gamesystem::text::TextMenu::Show(float cx, float cy) { _position.x = cx; _position.y = cy; _show = true; _enter = false; _drag = false; _select = 0; float w = _rectangle.GetWidth(); float h = _rectangle.GetHeight(); _rectangle.Top = _position.y - h * 0.5f; _rectangle.Bottom = _rectangle.Top + h; _rectangle.Left = _position.x - w * 0.5f; _rectangle.Right = _rectangle.Left + w; _header_rectangle.Bottom = _rectangle.Top + _header_rectangle.GetHeight(); _header_rectangle.Top = _rectangle.Top; _header_rectangle.Right = _rectangle.Left + _header_rectangle.GetWidth(); _header_rectangle.Left = _rectangle.Left; } void ratchet::game::gamesystem::text::TextMenu::Update(void) { if (!_show) { return; } //マウス位置で選択 float px, py; g_pInput->GetMousePos(px, py); CRectangle trec; CRectangle hrec = _header_rectangle; _select = -1; for (int i = 0; i < _count; i++) { CGraphicsUtilities::CalculateStringRect(0, 0, _item[i], trec); hrec.Top = hrec.Bottom; hrec.Bottom += trec.Bottom + _space.y * 2; if (hrec.CollisionPoint(px, py)) { _select = i; } } //左クリックで決定 if (g_pInput->IsMouseKeyPush(MOFMOUSE_LBUTTON)) { //ヘッダーのドラッグで移動させる if (_header_rectangle.CollisionPoint(px, py)) { _drag = true; } else if (_select >= 0 && _select < _count) { _enter = true; } } //ドラッグ移動 if (_drag && g_pInput->IsMouseKeyHold(MOFMOUSE_LBUTTON)) { float mx, my; g_pInput->GetMouseMove(mx, my); char str[128]; sprintf(str, "%f / %f\n", mx, my); OutputDebugString(str); _position.x += mx; _position.y += my; _rectangle.Left += mx; _rectangle.Right += mx; _rectangle.Top += my; _rectangle.Bottom += my; _header_rectangle.Left += mx; _header_rectangle.Right += mx; _header_rectangle.Top += my; _header_rectangle.Bottom += my; } else { _drag = false; } } void ratchet::game::gamesystem::text::TextMenu::Render(void) { if (!_show) { return; } //メニューの背景描画 CGraphicsUtilities::RenderFillRect(_rectangle, MOF_ARGB(200, 0, 0, 0)); CGraphicsUtilities::RenderFillRect(_header_rectangle, MOF_ARGB(200, 64, 64, 64)); //項目の文字を描画する CRectangle trec; float py = _rectangle.Top + _space.y; CGraphicsUtilities::CalculateStringRect(0, 0, _title, trec); CGraphicsUtilities::RenderString(_position.x - trec.GetWidth() * 0.5f, py, MOF_COLOR_WHITE, _title); py += trec.Bottom + _space.y; for (int i = 0; i < _count; i++) { CGraphicsUtilities::CalculateStringRect(0, 0, _item[i], trec); CGraphicsUtilities::RenderString(_position.x - trec.GetWidth() * 0.5f, py + _space.y, ((_select == i) ? MOF_XRGB(255, 255, 255) : MOF_XRGB(128, 128, 128)), _item[i]); py += trec.Bottom + _space.y; } }
99350012be81abeadec43f27f8c616768ef31c1c
2a07e7887c06d8673fd8af53c17dd4da634a2a0b
/src/client/windows/GameWindow.h
0382d893b0433f6609eef4da9c8af8ef39da400d
[]
no_license
llmanuel/Z-TPGrupal
b41773cdc8b9d25bed9d0701a1796a9b973f8028
a6a635c02b2e44ae3b6ed0ef1e90e5721b667ea0
refs/heads/master
2021-01-20T02:17:08.759900
2017-06-27T18:06:08
2017-06-27T18:06:08
101,312,891
0
0
null
null
null
null
UTF-8
C++
false
false
2,167
h
GameWindow.h
#ifndef Z_TPGRUPAL_GAMEWINDOW_H #define Z_TPGRUPAL_GAMEWINDOW_H #include <gtkmm/window.h> #include <gtkmm/grid.h> #include <gtkmm/button.h> #include <gtkmm/builder.h> #include <gtkmm/box.h> #include <gtkmm/label.h> #include <gtkmm/applicationwindow.h> #include "../GameArea.h" #include "../BuildingsMonitor.h" #include "../MapMonitor.h" #include "../ServerMessenger.h" #include "../panels/UnitPanel.h" #include "../panels/BuildingPanel.h" class GameWindow : public Gtk::ApplicationWindow { GameArea *gameArea; Gtk::Box *panel; UnitPanel *unit_panel; BuildingPanel *building_panel; Gtk::Box *group_panel; Gtk::Label *panelLabel; UnitsMonitor *unitsMonitor; BuildingsMonitor *buildingsMonitor; MapMonitor *mapMonitor; ServerMessenger *messenger; Unit selected_unit; Building selected_building; bool unit_selection; bool building_selection; std::string me; public: GameWindow(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder); virtual ~GameWindow(); /** * Saves resources' monitors and passes them to the gameArea. */ void setResources(UnitsMonitor *unitsMonitor, BuildingsMonitor *buildingsMonitor, MapMonitor *mapMonitor, ServerMessenger *messenger, const std::string &owner); void setMapData(); void factory_change_unit(std::string &path); void update_factory_panel(const std::string& type, int fire_rate, int hp); void update_factory_timer(int minutes, int seconds); void update_name(const std::string& name); protected: bool onTimeout(); private: void update_side_panels(); // Functions to change the window's side panel bool change_view_to_unit(); bool change_view_to_building(); bool change_view_to_unit_group(); bool on_button_release_event(GdkEventButton *event); void factory_next(); void factory_create_unit(); void process_attack(); bool on_key_press_event(GdkEventKey *event) override; void remove_side_panel(); void factory_prev(); void process_movement() const; }; #endif //Z_TPGRUPAL_GAMEWINDOW_H
419d6cadf1ddcc381845a5a93455d94e72b01573
7ed8ff9e9ed42b235a0c1286e53fbed9d81e0663
/WhiteJaredEngine01/Timer.cpp
4822d985c233e0292e6da89e39eb072a45727cda
[]
no_license
JaredMW/White_Jared_GameEngine01
5fa32ce2781e9756338edf4ac74790181e608829
a9b652661623f8d782917fd019bb04cfd4c1ccc6
refs/heads/master
2021-08-22T19:54:59.950491
2017-12-01T04:52:08
2017-12-01T04:52:08
112,696,230
1
1
null
null
null
null
UTF-8
C++
false
false
917
cpp
Timer.cpp
// Jared White // March 6, 2017 // WhiteJaredEngine01 Timer.cpp #include <string> #include "Timer.h" #include <GL\glew.h> #include <GLFW\glfw3.h> Timer::Timer() { //prev = cur = clock(); t = prev = dt = fps = 0; } Timer::~Timer() { } // Update Timer data void Timer::update() { //prev = cur; // Update the previous frame ////cur = clock(); // Update the current time frame //dt = (cur - prev) / (float)CLOCKS_PER_SEC; // Delta time since last frame //t += dt; // The current time //fps = 1 / dt; // Frames per second prev = t; t = (float)glfwGetTime(); dt = t - prev; fps = 1 / dt; } // Get the time passed (in seconds) since the start of the simulation float Timer::getTime() { return t; } // Get the change in time since the last frame (in seconds) float Timer::getDT() { return dt; } // Get the current Frames Per Second float Timer::getFPS() { return fps; }
909de5ccccb5f6f3e088ed2307d80a9f5ab822ff
fb1e797601e9bb241c5cb0d4aecd98be33903e5a
/exercism/cpp/crypto-square/crypto_square.h
e071e6827ef53b429d71f1feaeac326300d7eb7e
[]
no_license
nilsso/challenge-solutions
8b409b4665c62fdfda863e2706180ac8f2d4409c
5b837cac329a9948c5bc4e57baa7780161ee5f07
refs/heads/master
2021-06-28T22:02:19.462270
2020-08-17T20:52:32
2020-08-17T20:52:32
133,567,250
0
0
null
null
null
null
UTF-8
C++
false
false
859
h
crypto_square.h
#ifndef CRYPTO_SQUARE_H #define CRYPTO_SQUARE_H //#define CRYPTO_SQUARE_MAIN #define EXERCISM_RUN_ALL_TESTS #include <cmath> #include <string> #include <vector> #include <algorithm> #include <sstream> namespace crypto_square { using std::string; using std::string_view; using std::vector; using std::stringstream; class Cipher { private: string m_plaintext; vector<string> m_segments; string m_normalizedciphertext; string m_ciphertext; public: Cipher (string s); const string& normalize_plain_text() const { return m_plaintext; } const vector<string>& plain_text_segments() const { return m_segments; } const string& cipher_text() const { return m_ciphertext; } const string& normalized_cipher_text() const { return m_normalizedciphertext; } }; using cipher = Cipher; } #endif
fca02acb7d25ec31b24513f6a532cf4c1a295c01
3c483e23854b74fb4debc6c2e72945c80c0ec591
/Project/Source/FactoryGame/FGDestructibleActor.cpp
06acc3a566deeb13361ac32e689ee987bc98f1f4
[]
no_license
HaigenSAE/SatiSanctum
c535373b72ef970411f426310f29473ca64070c3
26075efc781eed2561958703955fde32e01e73b9
refs/heads/master
2020-06-25T09:22:33.716518
2019-08-06T22:07:15
2019-08-06T22:07:15
199,267,199
3
1
null
null
null
null
UTF-8
C++
false
false
1,318
cpp
FGDestructibleActor.cpp
// This file has been automatically generated by the Unreal Header Implementation tool #include "FGDestructibleActor.h" AFGDestructibleActor::AFGDestructibleActor(){ } float AFGDestructibleActor::TakeDamage( float damage, FDamageEvent const& damageEvent, AController* eventInstigator, AActor* damageCauser){ return float(); } void AFGDestructibleActor::PreSaveGame_Implementation( int32 saveVersion, int32 gameVersion){ } void AFGDestructibleActor::PostSaveGame_Implementation( int32 saveVersion, int32 gameVersion){ } void AFGDestructibleActor::PreLoadGame_Implementation( int32 saveVersion, int32 gameVersion){ } void AFGDestructibleActor::PostLoadGame_Implementation( int32 saveVersion, int32 gameVersion){ } void AFGDestructibleActor::GatherDependencies_Implementation( TArray< UObject* >& out_dependentObjects){ } bool AFGDestructibleActor::NeedTransform_Implementation(){ return bool(); } bool AFGDestructibleActor::ShouldSave_Implementation() const{ return bool(); } void AFGDestructibleActor::DisableCollision(){ } void AFGDestructibleActor::MakeDestructible(){ } void AFGDestructibleActor::OnDestructibleFractured( const FVector& hitPoint, const FVector& hitDirection){ } void AFGDestructibleActor::Multicast_OnDestructibleFractured_Implementation( const FVector& hitPoint, const FVector& hitDirection){ }
7271ac823ae07d7d4ed7a5acdad3156b2390e237
c62273a7d91d58faa9bbf2b784f67073c2df8d41
/Source.cpp
b535e88a27d4a4ff3e3b862da36baad06f7c78cd
[]
no_license
aleyndmitriy/SQLTest
a2237262de5cb6a942b2fd9efca117e95777a6c2
e7c681afbe3ad9ac78b56a820d6453fd134aece0
refs/heads/master
2022-02-21T09:17:44.165726
2019-09-25T11:29:55
2019-09-25T11:29:55
198,179,166
0
0
null
null
null
null
UTF-8
C++
false
false
406
cpp
Source.cpp
#include "DataSQLServerAccessAssembly.h" int APIENTRY DllMain(_In_ HINSTANCE hInstance, DWORD fdwReason, PVOID fImpLoad) { switch (fdwReason) { case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hInstance); break; case DLL_THREAD_DETACH: break; case DLL_PROCESS_DETACH: DrvFtaeAlarm::DataSQLServerAccessAssembly::instance().ClearAssemblies(); break; default: break; } return (TRUE); }
873c9864433c89e51e1f6b8c2c195e5ed4e1ca06
44d5ddeb77c4560af99f718fbc0a47de86a60fbd
/C++/Examples/C++/cast conversions/2 static_cast.cpp
37b527ec02d826e12c24c146c898db9a42e6f859
[]
no_license
tuandat64/rpw
f55c707f52d0a4b02fdbda59bd295e0dd5206f3c
be3d40ee52d487e83df20f6757c228d638c12d77
refs/heads/master
2023-03-05T15:14:13.308877
2021-02-18T08:37:09
2021-02-18T08:37:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,858
cpp
2 static_cast.cpp
#include "stdafx.h" //static_cast conversion @ http://en.cppreference.com/w/cpp/language/static_cast #include <vector> #include <iostream> #include <algorithm> #include <string> using namespace std; struct B { int m = 0; void hello() const { cout << "Hello world, this is B!\n"; } }; struct D : B { void hello() const { cout << "Hello world, this is D!\n"; } }; enum class E { ONE = 1, TWO, THREE }; enum EU { ONE = 1, TWO, THREE }; int main() { int n = static_cast<int>(3.14); // 1: initializing conversion cout << "n = " << n << '\n'; vector<int> v = static_cast<vector<int>>(10); cout << "v.size() = " << v.size() << "\n\n"; D d; // 2: static downcast B& br = d; // upcast via implicit conversion br.hello(); D& another_d = static_cast<D&>(br); // downcast another_d.hello(); cout << endl; vector<int> v2 = static_cast<vector<int>&&>(v); // 3: lvalue to xvalue cout << "after move, v.size() = " << v.size() << "\n\n"; string strTestSrc = "Test"; //TEST cout << strTestSrc << endl; cout << strTestSrc.size() << endl; string strTestDst = static_cast<string&&>(strTestSrc); cout << strTestSrc.size() << endl; cout << strTestDst.size() << "\n\n"; static_cast<void>(v2.size()); // 4: discarded-value expression void* nv = &n; // 5. inverse of implicit conversion int* ni = static_cast<int*>(nv); cout << "*ni = " << *ni << "\n\n"; D a[10]; // 6. array-to-pointer followed by upcast B* dp = static_cast<B*>(a); E e = E::ONE; // 7. scoped enum to int or float int one = static_cast<int>(e); cout << one << "\n\n"; E e2 = static_cast<E>(one); // 8. int to enum, enum to another enum EU eu = static_cast<EU>(e2); int D::*pm = &D::m; // 9. pointer to member upcast cout << br.*static_cast<int B::*>(pm) << "\n\n"; void* voidp = &e; // 10. void* to any type vector<int>* p = static_cast<vector<int>*>(voidp); }
46427d358f99dfe5a66c7457fd7b73043048dbea
2442bf3f201bf7e2ce000640c0523546f4c1219e
/Solutions/Climbing Stairs/main.cpp
e287cc644c4ffae406c3fc2cc4a753a825922f1a
[ "MIT" ]
permissive
Crayzero/LeetCodeProgramming
aeefd2cf00705334d031b35a2b98f4ddef44730d
b10ebe22c0de1501722f0f5c934c0c1902a26789
refs/heads/master
2021-01-17T15:12:40.116004
2015-06-17T12:27:57
2015-06-17T12:27:57
33,850,297
1
0
null
null
null
null
UTF-8
C++
false
false
541
cpp
main.cpp
#include <iostream> using namespace std; class Solution { public: int climbStairs(int n) { int one_forward = 1; int two_forward = 1; if (n == 0) { return 0; } if (n == 1) { return 1; } for(int i = 2; i <= n; i++) { int tmp = one_forward + two_forward; one_forward = two_forward; two_forward = tmp; } return two_forward; } }; int main() { Solution s; cout<<s.climbStairs(6); return 0; }
974710abe45cde4b58225ab9214144b31eec8e61
21727449157e5e020cd24fa3c6622683a36452e1
/SPOJ/CPTTRN1 - Character Patterns (Act 1).cpp
f62dbeafef8de5fe1d84f5db2238a25c2cd8b029
[]
no_license
Kristarx/Cplusplus
3a0e819a6e383d5bf539b3fdc937a75fef7cea03
02615833ae250d8fe70044b55e0d335131a835ac
refs/heads/master
2020-08-30T07:01:38.508291
2019-11-01T12:26:15
2019-11-01T12:26:15
218,299,576
0
0
null
null
null
null
UTF-8
C++
false
false
512
cpp
CPTTRN1 - Character Patterns (Act 1).cpp
#include <iostream> using namespace std; int main() { int ile; cin >> ile; for(int i = 0; i < ile; i++) { int wiersze, kolumny; cin >> wiersze >> kolumny; int iloczyn = wiersze * kolumny; for(int j = 1; j <= iloczyn; j++) { if(j%2 != 0) cout << "*"; else cout << "."; if(j%kolumny == 0) cout << endl; } cout << endl; } }
74e85846a7c6fbcb80e134c57c8eef9452bf4218
05803cfabffdef2ccdf294fdcbcb6319e31997f4
/src/app.h
058ee8981730d5b699e606a92c6b4bb6d7dba5c3
[ "BSD-2-Clause" ]
permissive
abainbridge/trex-warrior
3cedc69d5a69500e5cdde1a393df29e31f005ed9
fac95802ce7efd8dc9c50f915ce8d5891f545640
refs/heads/master
2021-06-02T05:53:21.090486
2015-11-08T19:14:48
2015-11-08T19:14:48
32,854,108
0
0
null
null
null
null
UTF-8
C++
false
false
761
h
app.h
#ifndef INCLUDED_APP_H #define INCLUDED_APP_H class Camera; class Level; class ParticleSystem; class Renderer; class App { public: enum { StatePlayLocation, StateEditLocation, StateGameOver, StateQuit }; private: int m_state; public: // Things that are the world Level *m_level; // Everything else Camera *m_camera; ParticleSystem *m_particleSystem; Renderer *m_renderer; // State flags bool m_paused; int m_requestedState; private: void MainLoopCommonStart(); void Render(); void PlayLocationLoop(); void EditLocationLoop(); void GameOverLoop(); public: App(); void RunGame(); }; extern App *g_app; #endif
52021c552a50bb88a0e7a2a142d9c20f01556565
14ca08448d67cb09eedce540d515242825068bbd
/server.cpp
8701e8999a88d2eba3621e2ce21572507820e16f
[ "Apache-2.0" ]
permissive
Lab-Zjt/liblily
254a1df2a810aa5ae650a918527e8d4dbe22b797
ca92f5f14335f7a836646d661da3e6fce9be04d4
refs/heads/master
2020-07-25T22:30:12.789943
2020-06-29T14:49:43
2020-06-29T14:49:43
208,442,578
0
1
null
null
null
null
UTF-8
C++
false
false
1,791
cpp
server.cpp
#include "src/coroutine/go.h" #include "src/net/net.h" #include "src/coroutine/co_chan.h" #include "src/coroutine/co_select.h" #include <iostream> #include <sys/eventfd.h> #include <sys/epoll.h> template<typename T> using Ptr = std::unique_ptr<T>; template<typename T> using Arr = std::unique_ptr<T[]>; template<typename T> Arr<T> NewArr(size_t t) { return std::unique_ptr<T[]>(new T[t]); } using namespace lily; #define _case(var, chan, ...) CreateCase(chan, [&](typename decltype(chan)::value_type var){__VA_ARGS__}) Main(int argc, char **argv) { Channel<int> ci; Channel<double> cd; Channel<std::string> cs; go([&]() { auto s = Select( _case(i, ci, std::cout << "int: " << i << std::endl; ), _case(d, cd, std::cout << "double: " << d << std::endl; ), _case(s, cs, std::cout << "string: " << s << std::endl; ), _case(_, _default, std::cout << "default: " << std::endl; ) ); for (;;) { s.Select(); } }); TCPServer server("127.0.0.1", 12998); int index = 0; for (;;) { auto conn = server.Accept(); if (conn == nullptr) { std::cerr << "accept failed\n"; continue; } printf("%s <=> %s\n", conn->PeerAddr().String().c_str(), conn->LocalAddr().String().c_str()); if (++index % 3 == 0) { ci << index; } else if (index % 3 == 1) { cd << index; } else if (index % 3 == 2) { cs << std::to_string(index); } go([](std::unique_ptr<Client> conn) { auto buf = NewArr<char>(1024); auto len = conn->Read(buf.get(), 32); buf[len] = '\0'; conn->Write(buf.get(), len); std::cout << "char[" << len << "]: " << buf.get() << "\n"; }, std::move(conn)); } return 0; }
ddf3117160d6eaa581ca1c8775e5245a025fc017
51242f22d954e6cebed4979827defb335259913a
/src/ArduinoJson/Array/Utilities.hpp
398e11d456975904afc7a3ca94a036488cf4dc20
[ "MIT" ]
permissive
bblanchon/ArduinoJson
458975619ce9e75857a8b07b868257ff74d46784
aebf042baeb08435ca22bd583e5ee3df82e03d46
refs/heads/6.x
2023-09-01T07:29:14.785166
2023-08-24T07:43:23
2023-08-24T07:43:23
15,802,263
6,525
1,335
MIT
2023-01-13T07:21:55
2014-01-10T15:54:52
C++
UTF-8
C++
false
false
3,644
hpp
Utilities.hpp
// ArduinoJson - https://arduinojson.org // Copyright © 2014-2023, Benoit BLANCHON // MIT License #pragma once #include <ArduinoJson/Array/JsonArray.hpp> #include <ArduinoJson/Document/JsonDocument.hpp> ARDUINOJSON_BEGIN_PUBLIC_NAMESPACE // Copies a value to a JsonVariant. // This is a degenerated form of copyArray() to stop the recursion. template <typename T> inline typename detail::enable_if<!detail::is_array<T>::value, bool>::type copyArray(const T& src, JsonVariant dst) { return dst.set(src); } // Copies values from an array to a JsonArray or a JsonVariant. // https://arduinojson.org/v6/api/misc/copyarray/ template <typename T, size_t N, typename TDestination> inline typename detail::enable_if< !detail::is_base_of<JsonDocument, TDestination>::value, bool>::type copyArray(T (&src)[N], const TDestination& dst) { return copyArray(src, N, dst); } // Copies values from an array to a JsonArray or a JsonVariant. // https://arduinojson.org/v6/api/misc/copyarray/ template <typename T, typename TDestination> inline typename detail::enable_if< !detail::is_base_of<JsonDocument, TDestination>::value, bool>::type copyArray(const T* src, size_t len, const TDestination& dst) { bool ok = true; for (size_t i = 0; i < len; i++) { ok &= copyArray(src[i], dst.add()); } return ok; } // Copies a string to a JsonVariant. // This is a degenerated form of copyArray() to handle strings. template <typename TDestination> inline bool copyArray(const char* src, size_t, const TDestination& dst) { return dst.set(src); } // Copies values from an array to a JsonDocument. // https://arduinojson.org/v6/api/misc/copyarray/ template <typename T> inline bool copyArray(const T& src, JsonDocument& dst) { return copyArray(src, dst.to<JsonArray>()); } // Copies an array to a JsonDocument. // https://arduinojson.org/v6/api/misc/copyarray/ template <typename T> inline bool copyArray(const T* src, size_t len, JsonDocument& dst) { return copyArray(src, len, dst.to<JsonArray>()); } // Copies a value from a JsonVariant. // This is a degenerated form of copyArray() to stop the recursion. template <typename T> inline typename detail::enable_if<!detail::is_array<T>::value, size_t>::type copyArray(JsonVariantConst src, T& dst) { dst = src.as<T>(); return 1; } // Copies values from a JsonArray or JsonVariant to an array. // https://arduinojson.org/v6/api/misc/copyarray/ template <typename T, size_t N> inline size_t copyArray(JsonArrayConst src, T (&dst)[N]) { return copyArray(src, dst, N); } // Copies values from a JsonArray or JsonVariant to an array. // https://arduinojson.org/v6/api/misc/copyarray/ template <typename T> inline size_t copyArray(JsonArrayConst src, T* dst, size_t len) { size_t i = 0; for (JsonArrayConst::iterator it = src.begin(); it != src.end() && i < len; ++it) copyArray(*it, dst[i++]); return i; } // Copies a string from a JsonVariant. // This is a degenerated form of copyArray() to handle strings. template <size_t N> inline size_t copyArray(JsonVariantConst src, char (&dst)[N]) { JsonString s = src; size_t len = N - 1; if (len > s.size()) len = s.size(); memcpy(dst, s.c_str(), len); dst[len] = 0; return 1; } // Copies values from a JsonDocument to an array. // https://arduinojson.org/v6/api/misc/copyarray/ template <typename TSource, typename T> inline typename detail::enable_if< detail::is_array<T>::value && detail::is_base_of<JsonDocument, TSource>::value, size_t>::type copyArray(const TSource& src, T& dst) { return copyArray(src.template as<JsonArrayConst>(), dst); } ARDUINOJSON_END_PUBLIC_NAMESPACE
feb822a3654010a233890e96d3ad41d54f4f2c97
43c32d6791349d91ee99d50330717e413f95b667
/Strategy/cpp-source/SwimBehaviour.h
40a5b6aaf08d08e409e48f0e1f47fe8d7890a930
[]
no_license
akhtyamovpavel/PatternsCollection
17d0f26b486f065fc38fc9297844d454711b687c
9165d5bc7c50494adaf1b0dce40b08bfdd41d87c
refs/heads/master
2023-04-02T20:06:18.635096
2023-03-21T19:38:02
2023-03-21T19:38:02
171,413,700
42
44
null
2021-10-31T18:44:25
2019-02-19T05:51:52
C++
UTF-8
C++
false
false
133
h
SwimBehaviour.h
// // Created by Pavel Akhtyamov on 2019-04-10. // #pragma once class SwimBehaviour { public: virtual void Execute() = 0; };
a5dd850e27a7a254909aa29e51367f2a7e68e0ab
cc24b64a67de34e7320c867a6bb6e71d5146bcdf
/GamesProgramming2labs/GamesProgramming2labs/Transform.cpp
8405893eaf97232e3a8dc1bbaa01fdb8c5267b40
[]
no_license
crystalix/GPULabs-EGILLE200
4f21b40f4e07ec86a97c4b865ac4551d5cc9c7f3
d5fa80eb5ed9b0e99864708ba2664c24fbcf903d
refs/heads/master
2020-05-17T14:56:14.288562
2014-11-06T18:05:06
2014-11-06T18:05:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
887
cpp
Transform.cpp
#include "Transform.h" Transform::Transform() { } void Transform::update() { mat4 translate = glm::translate(translate, m_Position); mat4 scale =glm::scale(scale, m_Scale); mat4 rotationX = glm::rotate(rotationX,m_Rotation.x,vec3(1.0f,0.0f,0.0f)); mat4 rotationY = glm::rotate(rotationY,m_Rotation.y,vec3(0.0f,1.0f,0.0f)); mat4 rotationZ = glm::rotate(rotationZ,m_Rotation.z,vec3(0.0f,0.0f,1.0f)); mat4 rotation = rotationX*rotationY*rotationZ; m_Model = translate*rotation*scale; } void Transform::setPos(vec3 Position) { m_Position = Position; } void Transform::setScale(vec3 Scale) { m_Scale = Scale; } void Transform::setRot(vec3 Rotation) { m_Rotation = Rotation; } vec3 Transform::getPos() { return m_Position; } vec3 Transform::getScale() { return m_Scale; } vec3 Transform::getRot() { return m_Rotation; } mat4 Transform::getModel() { return m_Model; }
4f5693ae2adafd7657f60f89d0bc0e224976125b
3851d34ce7b22b24526ce827a5f1ecac2f191de9
/cpp/libs/src/asiopal/StrandExecutor.cpp
2f9fb9c4ee127af85efda1dfe188df40ebfbc468
[ "Apache-2.0" ]
permissive
wdtj/dnp3
e5773820b9eb9916e5a8d3636ae50fe62f881ff6
049de82fe0def2de3729b1918ac5a0fe490c0762
refs/heads/2.0.x
2020-04-06T03:47:33.745971
2016-11-02T20:27:43
2016-11-02T20:27:43
56,339,849
0
1
null
2016-04-15T17:59:44
2016-04-15T17:59:43
null
UTF-8
C++
false
false
2,902
cpp
StrandExecutor.cpp
/* * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * This project was forked on 01/01/2013 by Automatak, LLC and modifications * may have been made to this file. Automatak, LLC licenses these modifications * to you under the terms of the License. */ #include "asiopal/StrandExecutor.h" #include "asiopal/StrandTimer.h" #include <chrono> using namespace openpal; namespace asiopal { StrandExecutor::StrandExecutor(std::shared_ptr<ThreadPool> pool) : m_pool(pool), m_strand(pool->GetIOService()) { } std::shared_ptr<StrandExecutor> StrandExecutor::Create(std::shared_ptr<ThreadPool> pool) { return std::shared_ptr<StrandExecutor>(new StrandExecutor(pool)); } MonotonicTimestamp StrandExecutor::GetTime() { auto millisec = std::chrono::duration_cast<std::chrono::milliseconds>(asiopal_steady_clock::now().time_since_epoch()).count(); return openpal::MonotonicTimestamp(millisec); } ITimer* StrandExecutor::Start(const TimeDuration& delay, const Action0& runnable) { auto expiration = asiopal_steady_clock::now() + std::chrono::milliseconds(delay.GetMilliseconds()); return Start(expiration, runnable); } ITimer* StrandExecutor::Start(const MonotonicTimestamp& time, const Action0& runnable) { asiopal_steady_clock::time_point expiration(std::chrono::milliseconds(time.milliseconds)); return Start(expiration, runnable); } openpal::ITimer* StrandExecutor::Start(const asiopal_steady_clock::time_point& expiration, const openpal::Action0& runnable) { auto self(shared_from_this()); auto timer = std::shared_ptr<StrandTimer>(new StrandTimer(this->m_strand.get_io_service())); timer->m_timer.expires_at(expiration); // neither the executor nor the timer can be deleted while the timer is still active auto callback = [timer, self, runnable](const std::error_code & ec) { if (!ec) // an error indicate timer was canceled { runnable.Apply(); } }; timer->m_timer.async_wait(m_strand.wrap(callback)); return timer.get(); } void StrandExecutor::Post(const Action0& runnable) { auto self(shared_from_this()); auto callback = [self, runnable]() { runnable.Apply(); }; m_strand.post(callback); } }
917aaba9fb64026098791d797982232a649710b1
6c0d489a8032915848fa7f9368698a2636eecd33
/TTGO/TTGO_LORA32/TTGO_FreeRTOS/src/ssd1306/ssd1306_i2c.cpp
6ad71419c448a64135664c44585e88883457a225
[]
no_license
lstefani006/teensy
d05f044557fdff19594b9b4882226b42acb7dd1a
c8200f1ee43f6426d4f3acf0a3784f13626b8b48
refs/heads/master
2021-05-16T02:19:27.449462
2020-11-20T20:59:08
2020-11-20T20:59:08
43,541,230
3
0
null
null
null
null
UTF-8
C++
false
false
25,911
cpp
ssd1306_i2c.cpp
#include <string.h> #include <stdlib.h> #include "ssd1306_i2c.h" #include "i2c_utils.hpp" #include "fonts.hpp" #define I2C_COMMAND 0x00 #define I2C_DATA 0x40 // Fundamental Command Table #define SSD1306_SET_CONTROL 0x81 // Double byte command to select 1 out of 256 contrast steps. Contrast increases as the value increases. #define SSD1306_RESET 0x7F #define SSD1306_DISPLAY_ON_RAM 0xA4 // Resume to RAM content display (RESET) #define SSD1306_DISPLAY_NO_RAM 0xA5 // Output ignores RAM content #define SSD1306_SET_NORMAL 0xA6 // Normal display (RESET) #define SSD1306_SET_INVERSE 0xA7 // Inverse display #define SSD1306_SET_DISPLAY_OFF 0xAE // Display OFF (sleep mode) #define SSD1306_SET_DISPLAY_ON 0xAF // Display ON in normal mode // Addressing mode #ifndef DEFAULTBUFFERLENGTH #define DEFAULTBUFFERLENGTH 1024 #endif #define DATAONLY (uint8_t)0b01000000 #define COMMAND (uint8_t)0b00000000 SD1306::SD1306(ESP32_I2C &i2c, int width, int height) : i2c(i2c), Log(nullptr) { _WIDTH = width; _HEIGHT = height; _screenBufferLength = width * height / 8; _screenRAM = (uint8_t *)malloc(_screenBufferLength); _mutex_cx = 0; _mutex_cy = 0; _mutex_font = font_08x08; } /* SD1306::~SD1306() { if (_screenRAM) free(_screenRAM); } */ /* Device memory organised in 128 horizontal pixel and up to 8 rows of byte * B B .............B ----- y y .............y \ t t .............t \ e e .............e \ 0 1 .............127 \ \ D0 D0.............D0 LSB \ ROW 0 | D1 D1.............D1 / ROW 7 V D2 D2.............D2 | / D3 D3.............D3 | / D4 D4.............D4 V / D5 D5.............D5 / D6 D6.............D6 MSB / D7 D7.............D7 ---- */ /** I2C bus write data * * According to datasheet (8.1.5.1) the I2C-bus interface gives access to write data and command into the device. Please refer to Figure for * the write mode of I2C-bus in chronological order. * * S * [011110(SA)(r/w)] ack * [(Co)(D/C)(Control bites(6))] (ack) [Data byte] (ack) \ * [(Co)(D/C)(Control bites(6))] (ack) [Data byte] (ack) - m >= 0 words * [(Co)(D/C)(Control bites(6))] (ack) [Data byte] (ack) / * [(Co)(D/C)(Control bites(6))] (ack) [Data byte] (ack) every [...] -- 1 byte * [(Co)(D/C)(Control bites(6))] (ack) [Data byte] (ack) [Data byte] -- should be n >= 0 * [(Co)(D/C)(Control bites(6))] (ack) [Data byte] (ack) MSB.....LSB * [Data byte] (ack) [Data byte] (ack) [Data byte] (ack) * [Data byte] (ack) [Data byte] (ack) [Data byte] (ack) * P * * [011110(SA)(r/w)] -- SSD1306 slave address * [(Co)(D/C)(Control bites(6))] -- Control byte * * 1. The master device initiates the data communication by a start condition. * The start condition is established by pulling the SDA from HIGH to LOW while the SCL stays HIGH. * 2. The slave address is following the start condition for recognition use. For the SSD1306, the slave * address is either “b0111100” or “b0111101” by changing the SA0 to LOW or HIGH (D/C pin acts as * SA0). * 3. The write mode is established by setting the R/W# bit to logic “0”. * 4. An acknowledgement signal will be generated after receiving one byte of data, including the slave * address and the R/W# bit. The acknowledge bit is defined as the SDA line is pulled down during the HIGH * period of the acknowledgement related clock pulse. * 5. After the transmission of the slave address, either the control byte or the data byte may be sent across * the SDA. A control byte mainly consists of Co and D/C# bits following by six “0” ‘s. * a. If the Co bit is set as logic “0”, the transmission of the following information will contain * data _bytes_ only. * b. The D/C# bit determines the next data byte is acted as a command or a data. If the D/C# bit is * set to logic “0”, it defines the following data byte as a command. If the D/C# bit is set to * logic “1”, it defines the following data byte as a data which will be stored at the GDDRAM. * The GDDRAM column address pointer will be increased by one automatically after each * data write. * 6. Acknowledge bit will be generated after receiving each control byte or data byte. * 7. The write mode will be finished when a stop condition is applied. The stop condition is also defined * in Figure 8-8. The stop condition is established by pulling the “SDA in” from LOW to HIGH while * the “SCL” stays HIGH. * * @param spec -- should be DATAONLY or COMMAND * * Note: if you choose DATAONLY then a few bytes CAN follow that * Note(2): In fact it doesn't really matter what that datasheet has got written in. Every command can be sended * only one way: with set address and begin i2c transmission for EVERY single byte. It means that if you have * 3 byte command you MUST send each of them separatelly byte per byte in start->address->cmd-zero->byte->ack sequences. */ void SD1306::send_data(uint8_t spec, uint8_t data) { uint8_t b[2]; b[0] = spec; b[1] = data; i2c.Write(b, 2); } /** * According Reset Circuit * When RES# input is LOW, the chip is initialized with the following status: * 1. Display is OFF * 2. 128 x 64 Display Mode * 3. Normal segment and display data column address and row address mapping (SEG0 mapped to * address 00h and COM0 mapped to address 00h) * 4. Shift register data clear in serial interface * 5. Display start line is set at display RAM address 0 * 6. Column address counter is set at 0 * 7. Normal scan direction of the COM outputs * 8. Contrast control register is set at 7Fh * 9. Normal display mode (Equivalent to A4h command) */ #define SSD1306_MEMORYMODE 0x20 ///< See datasheet #define SSD1306_COLUMNADDR 0x21 ///< See datasheet #define SSD1306_PAGEADDR 0x22 ///< See datasheet #define SSD1306_SETCONTRAST 0x81 ///< See datasheet #define SSD1306_CHARGEPUMP 0x8D ///< See datasheet #define SSD1306_SEGREMAP 0xA0 ///< See datasheet #define SSD1306_DISPLAYALLON_RESUME 0xA4 ///< See datasheet #define SSD1306_DISPLAYALLON 0xA5 ///< Not currently used #define SSD1306_NORMALDISPLAY 0xA6 ///< See datasheet #define SSD1306_INVERTDISPLAY 0xA7 ///< See datasheet #define SSD1306_SETMULTIPLEX 0xA8 ///< See datasheet #define SSD1306_DISPLAYOFF 0xAE ///< See datasheet #define SSD1306_DISPLAYON 0xAF ///< See datasheet #define SSD1306_COMSCANINC 0xC0 ///< Not currently used #define SSD1306_COMSCANDEC 0xC8 ///< See datasheet #define SSD1306_SETDISPLAYOFFSET 0xD3 ///< See datasheet #define SSD1306_SETDISPLAYCLOCKDIV 0xD5 ///< See datasheet #define SSD1306_SETPRECHARGE 0xD9 ///< See datasheet #define SSD1306_SETCOMPINS 0xDA ///< See datasheet #define SSD1306_SETVCOMDETECT 0xDB ///< See datasheet #define SSD1306_SETLOWCOLUMN 0x00 ///< Not currently used #define SSD1306_SETHIGHCOLUMN 0x10 ///< Not currently used #define SSD1306_SETSTARTLINE 0x40 ///< See datasheet #define SSD1306_EXTERNALVCC 0x01 ///< External display voltage source #define SSD1306_SWITCHCAPVCC 0x02 ///< Gen. display voltage from 3.3V #define SSD1306_RIGHT_HORIZONTAL_SCROLL 0x26 ///< Init rt scroll #define SSD1306_LEFT_HORIZONTAL_SCROLL 0x27 ///< Init left scroll #define SSD1306_VERTICAL_AND_RIGHT_HORIZONTAL_SCROLL 0x29 ///< Init diag scroll #define SSD1306_VERTICAL_AND_LEFT_HORIZONTAL_SCROLL 0x2A ///< Init diag scroll #define SSD1306_DEACTIVATE_SCROLL 0x2E ///< Stop scroll #define SSD1306_ACTIVATE_SCROLL 0x2F ///< Start scroll #define SSD1306_SET_VERTICAL_SCROLL_AREA 0xA3 ///< Set scroll range #define SSD1306_SWITCHCAPVCC 0x02 ///< Gen. display voltage from 3.3V void SD1306::send_cmd(uint8_t c) { i2c.Write(COMMAND, &c, 1); } void SD1306::send_cmdList(const uint8_t *b, int sz) { i2c.Write(COMMAND, b, sz); } void SD1306::setup() { // Init sequence static const uint8_t PROGMEM init1[] = {SSD1306_DISPLAYOFF, // 0xAE SSD1306_SETDISPLAYCLOCKDIV, // 0xD5 0x80, // the suggested ratio 0x80 SSD1306_SETMULTIPLEX}; // 0xA8 send_cmdList(init1, sizeof(init1)); send_cmd(_HEIGHT - 1); static const uint8_t PROGMEM init2[] = {SSD1306_SETDISPLAYOFFSET, // 0xD3 0x0, // no offset SSD1306_SETSTARTLINE | 0x0, // line #0 SSD1306_CHARGEPUMP, // 0x8D 0x14}; send_cmdList(init2, sizeof(init2)); auto vccstate = SSD1306_SWITCHCAPVCC; // send_cmd((vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0x14); static const uint8_t PROGMEM init3[] = {SSD1306_MEMORYMODE, // 0x20 0x00, // 0x0 act like ks0108 SSD1306_SEGREMAP | 0x1, SSD1306_COMSCANDEC}; send_cmdList(init3, sizeof(init3)); uint8_t comPins = 0x02; auto contrast = 0x8F; if ((_WIDTH == 128) && (_HEIGHT == 32)) { comPins = 0x02; contrast = 0x8F; } else if ((_WIDTH == 128) && (_HEIGHT == 64)) { comPins = 0x12; contrast = (vccstate == SSD1306_EXTERNALVCC) ? 0x9F : 0xCF; } else if ((_WIDTH == 96) && (_HEIGHT == 16)) { comPins = 0x2; // ada x12 contrast = (vccstate == SSD1306_EXTERNALVCC) ? 0x10 : 0xAF; } else { // Other screen varieties -- TBD } send_cmd(SSD1306_SETCOMPINS); send_cmd(comPins); send_cmd(SSD1306_SETCONTRAST); send_cmd(contrast); send_cmd(SSD1306_SETPRECHARGE); // 0xd9 send_cmd((vccstate == SSD1306_EXTERNALVCC) ? 0x22 : 0xF1); static const uint8_t PROGMEM init5[] = { SSD1306_SETVCOMDETECT, // 0xDB 0x40, SSD1306_DISPLAYALLON_RESUME, // 0xA4 SSD1306_NORMALDISPLAY, // 0xA6 SSD1306_DEACTIVATE_SCROLL, SSD1306_DISPLAYON}; // Main screen turn on send_cmdList(init5, sizeof(init5)); } /** * Set Memory Addressing Mode (20h) * 2 byte * A[1:0] = 00b, Horizontal Addressing Mode * A[1:0] = 01b, Vertical Addressing Mode * A[1:0] = 10b, Page Addressing Mode (default after RESET) * A[1:0] = 11b, Invalid * @param mode -- select Mode */ void SD1306::setMemoryAddressingMode_20(SSD1306_AddressingMode mode) { // send initial command to the device send_data(COMMAND, 0x20); send_data(COMMAND, uint8_t(mode)); } /** Set Column Address [Space] (21h) * * 3 byte * Command specifies column start address and end address of the display data RAM. This * command also sets the column address pointer to column start address. This pointer is used to define the * current read/write column address in graphic display data RAM. * * It setup column start and end address * A[6:0] : Column start address, range : 0-127d, (RESET=0d) * B[6:0]: Column end address, range : 0-127d, (RESET =127d) * * @param lower -- up to 127 * @param higher -- up to 127 * * Note: This command is only for horizontal or vertical addressing mode! */ void SD1306::setColumnAddressScope_21(uint8_t lower, uint8_t upper) { send_data(COMMAND, 0x21); send_data(COMMAND, lower); send_data(COMMAND, upper); } /** Set Page Address (22h) * * This triple byte command specifies page start address and end address of the display data RAM. This * command also sets the page address pointer to page start address. This pointer is used to define the current * read/write page address in graphic display data RAM. If vertical address increment mode is enabled by * command 20h, after finishing read/write one page data, it is incremented automatically to the next page * address. Whenever the page address pointer finishes accessing the end page address, it is reset back to start * page address. * * Setup page start and end address * A[2:0] : Page start Address, range : 0-7d, (RESET = 0d) * B[2:0] : Page end Address, range : 0-7d, (RESET = 7d) * * @param lower -- from 0 up to 7 * @param higher -- from 0 up to 7 * * Note: This command is only for horizontal or vertical addressing mode. */ void SD1306::setPageAddressScope_22(uint8_t lower, uint8_t upper) { send_data(COMMAND, 0x22); send_data(COMMAND, lower); send_data(COMMAND, upper); } /** Set Display Start Line (40h~7Fh) * This command sets the Display Start Line register to determine starting address of display RAM, by selecting * a value from 0 to 63. With value equal to 0, RAM row 0 is mapped to COM0. With value equal to 1, RAM * row 1 is mapped to COM0 and so on. * @param startLine -- from 0 to 63 */ void SD1306::setDisplayStartLine_40_7F(uint8_t startLine) { send_data(COMMAND, (uint8_t)(0x40 | (startLine & 0b00111111))); } /** Set Contrast Control for BANK0 (81h) * * This command sets the Contrast Setting of the display. The chip has 256 contrast steps from 00h to FFh. The * segment output current increwhile (_IF_TxE(I2C_OLED));ases as the contrast step value increases. * @param value from 0 to 255 */ void SD1306::setContrast_81(uint8_t value) { send_data(COMMAND, 0x81); send_data(COMMAND, value); } /** Set Page Start Address For Page Addressing Mode (0xB0-0xB7) command * According the documentation Page MUST be from 0 to 7 * @param pageNum -- from 0 to 7 */ void SD1306::setPageStartAddressForPageAddressingMode_B0_B7(uint8_t pageNum) { send_data(COMMAND, (uint8_t)(0xb0 | (pageNum & 0b00000111))); } /** Set Pre-charge Period (D9h) * * This command is used to set the duration of the pre-charge period. The interval is counted in number of * DCLK, where RESET equals 2 DCLKs. * * Note: * @param value -- experimental typical value is 0xF1 */ void SD1306::setPrecharge_D9(uint8_t value) { send_data(COMMAND, 0xd9); send_data(COMMAND, value); } /** * Entire Display ON (A4h/A5h) * A4h command enable display outputs according to the GDDRAM contents. * If A5h command is issued, then by using A4h command, the display will resume to the GDDRAM contents. * In other words, A4h command resumes the display from entire display “ON” stage. * A5h command forces the entire display to be “ON”, regardless of the contents of the display data RAM. * * @param resume -- if it will be true, then DISPLAY will go ON and redraw content from RAM */ void SD1306::setDisplayOn_A4_A5(bool resume) { uint8_t cmd = (uint8_t)(resume ? 0xA4 : 0xA5); send_data(COMMAND, cmd); } /** Set Normal/Inverse Display (A6h/A7h) * * This command sets the display to be either normal or inverse. In normal display a RAM data of 1 indicates an * “ON” pixel while in inverse display a RAM data of 0 indicates an “ON” pixel. * @param inverse -- if true display will be inverted */ void SD1306::setInverse_A6_A7(bool inverse) { uint8_t cmd = (uint8_t)(inverse ? 0xA7 : 0xA6); send_data(COMMAND, cmd); } /** Set Display ON/OFF (AEh/AFh) * * These single byte commands are used to turn the OLED panel display ON or OFF. * When the display is ON, the selected circuits by Set Master Configuration command will be turned ON. * When the display is OFF, those circuits will be turned OFF and the segment and common output are in V SS * tate and high impedance state, respectively. These commands set the display to one of the two states: * AEh : Display OFF * AFh : Display ON */ void SD1306::switchOLEDOn_AE_AF(bool goOn) { if (goOn) send_data(COMMAND, 0xAF); else send_data(COMMAND, 0xAE); } /** Charge Pump Capacitor (8D) * * The internal regulator circuit in SSD1306 accompanying only 2 external capacitors can generate a * 7.5V voltage supply, V CC, from a low voltage supply input, V BAT . The V CC is the voltage supply to the * OLED driver block. This is a switching capacitor regulator circuit, designed for handheld applications. * This regulator can be turned on/off by software command setting. * * @param goOn -- if true OLED will going to ON * @param enableChargePump -- if On Charge Pump WILL be on when Display ON * * Note: There are two state in the device: NormalMode <-> SleepMode. If device is in SleepMode then the OLED panel power consumption * is close to zero. */ void SD1306::chargePump_8D(bool chargeOn) { send_data(COMMAND, 0x8D); if (chargeOn) send_data(COMMAND, 0x14); else send_data(COMMAND, 0x10); } /** Set Display Offset (D3h) * The command specifies the mapping of the display start line to one of * COM0~COM63 (assuming that COM0 is the display start line then the display start line register is equal to 0). * @param verticalShift -- from 0 to 63 */ void SD1306::setDisplayOffset_D3(uint8_t verticalShift) { send_data(COMMAND, 0xd3); send_data(COMMAND, verticalShift); } /** Set VcomH Deselect Level (DBh) * This is a special command to adjust of Vcom regulator output. */ void SD1306::adjustVcomDeselectLevel_DB(uint8_t value) { send_data(COMMAND, 0xdb); send_data(COMMAND, value); } /** Set Display Clock Divide Ratio/ Oscillator Frequency (D5h) * This command consists of two functions: * 1. Display Clock Divide Ratio (D)(A[3:0]) * Set the divide ratio to generate DCLK (Display Clock) from CLK. The divide ratio is from 1 to 16, * with reset value = 1. Please refer to section 8.3 (datasheet ssd1306) for the details relationship of DCLK and CLK. * 2. Oscillator Frequency (A[7:4]) * Program the oscillator frequency Fosc that is the source of CLK if CLS pin is pulled high. The 4-bit * value results in 16 different frequency settings available as shown below. The default setting is 0b1000 * * WARNING: you should NOT call this function with another parameters if you don't know why you do it * * @param value -- default value is 0x80 */ void SD1306::setOscillatorFrequency_D5(uint8_t value) { send_data(COMMAND, 0xd5); send_data(COMMAND, value); } void SD1306::setMultiplexRatio_A8(uint8_t ratio) { send_data(COMMAND, 0xa8); send_data(COMMAND, ratio); } void SD1306::setCOMPinsHardwareConfiguration_DA(uint8_t val) { send_data(COMMAND, 0xda); send_data(COMMAND, 0b00110010 & val); } /** * Set the page start address of the target display location by command B0h to B7h * @param page -- from 0 to 7 * * NOTE: It command is fit ONLY for Page mode */ void SD1306::setPage_B0_B7(uint8_t page) { send_data(COMMAND, (uint8_t)(0xb0 | (0b00000111 & page))); } /** * Set the lower and the upper column. * See note from datasheet: * * In page addressing mode, after the display RAM is read/written, the column address pointer is increased * automatically by 1. If the column address pointer reaches column end address, the column address pointer is * reset to column start address and page address pointer is not changed. Users have to set the new page and * column addresses in order to access the next page RAM content. * * In normal display data RAM read or write and page addressing mode, the following steps are required to * define the starting RAM access pointer location: * • Set the page start address of the target display location by command B0h to B7h. * • Set the lower start column address of pointer by command 00h~0Fh. * • Set the upper start column address of pointer by command 10h~1Fh. * For example, if the page address is set to B2h, lower column address is 03h and upper column address is 10h, * then that means the starting column is SEG3 of PAGE2. * * According that we should send first lower value. Next we send upper value. * * @param column -- from 0 to 127 * * NOTE: It command is fit ONLY for Page mode */ void SD1306::setColumn_00_0F(uint8_t column) { uint8_t cmd = (uint8_t)(0x0f & column); send_data(COMMAND, cmd); cmd = (uint8_t)(0x10 | (column >> 4)); send_data(COMMAND, cmd); } // -------------------- Graphics methods --------------------------- /** * * @param screenRAMClear -- clear or not MCU screenRAM. If not MCU will store buffer and can repaint it. */ void SD1306::clear(void) { _mutex_cx = _mutex_cy = 0; for (uint16_t i = 0; i < _screenBufferLength; i++) _screenRAM[i] = 0; } /** * Send (and display if OLED is ON) RAM buffer to device */ void SD1306::refresh(void) { // if (this->_useTask) // xSemaphoreGive(this->_refreshSem); // else //{ setMemoryAddressingMode_20(SSD1306_AddressingMode::Horizontal); // fa start/send*/stop setColumnAddressScope_21(0, _WIDTH - 1); setPageAddressScope_22(0, _HEIGHT / 8 - 1); i2c.Write(DATAONLY, _screenRAM, _screenBufferLength); //} } /* void SD1306::S_Task(void *pv) { ((SD1306 *)pv)->Task(); } void SD1306::Task() { for (;;) { // aspetto il comando per disegnare lo schermo xSemaphoreTake(this->_refreshSem, portMAX_DELAY); setMemoryAddressingMode_20(SSD1306_AddressingMode::Horizontal); // fa start/send/stop setColumnAddressScope_21(0, _WIDTH - 1); setPageAddressScope_22(0, _HEIGHT / 8 - 1); i2c.Write(DATAONLY, _screenRAM, _screenBufferLength); } } */ /////////////////////////////////////////////// void SD1306::drawVPattern(uint8_t x, int8_t y, uint8_t pattern) { if (y > _HEIGHT || y < (-7) || x > _WIDTH) return; uint8_t yy = abs(y) % 8; if (y < 0) _screenRAM[y / 8 * _WIDTH + x] |= pattern >> yy; else if (y > 23) _screenRAM[y / 8 * _WIDTH + x] |= pattern << yy; else { if (yy != 0) { _screenRAM[(y / 8 + 0) * _WIDTH + x] |= pattern << yy; _screenRAM[(y / 8 + 1) * _WIDTH + x] |= pattern >> (8 - yy); } else _screenRAM[y / 8 * _WIDTH + x] |= pattern; } } void SD1306::drawPixel(int x, int y, SSD1306_COLOR color) { if (x >= 0 && x < this->_WIDTH && y >= 0 && y < this->_HEIGHT) { switch (color) { case SSD1306_COLOR::white: this->_screenRAM[x + (y / 8) * this->_WIDTH] |= (1 << (y & 7)); break; case SSD1306_COLOR::black: this->_screenRAM[x + (y / 8) * this->_WIDTH] &= ~(1 << (y & 7)); break; case SSD1306_COLOR::inverse: this->_screenRAM[x + (y / 8) * this->_WIDTH] ^= (1 << (y & 7)); break; } } } SSD1306_COLOR SD1306::getPixel(int x, int y) { auto v = this->_screenRAM[x + (y / 8) * this->_WIDTH] & (1 << (y & 7)); if (v) return SSD1306_COLOR::white; else return SSD1306_COLOR::black; } void SD1306::drawHLine(int x1, int x2, int y, SSD1306_COLOR color) { switch (color) { case SSD1306_COLOR::white: for (int x = x1; x < x2; ++x) this->_screenRAM[x + (y / 8) * this->_WIDTH] |= (1 << (y & 7)); break; case SSD1306_COLOR::black: for (int x = x1; x < x2; ++x) this->_screenRAM[x + (y / 8) * this->_WIDTH] &= ~(1 << (y & 7)); break; case SSD1306_COLOR::inverse: for (int x = x1; x < x2; ++x) this->_screenRAM[x + (y / 8) * this->_WIDTH] ^= (1 << (y & 7)); break; } } void SD1306::drawVLine(int x, int y1, int y2, SSD1306_COLOR color) { switch (color) { case SSD1306_COLOR::white: for (int y = y1; y < y2; ++y) this->_screenRAM[x + (y / 8) * this->_WIDTH] |= (1 << (y & 7)); break; case SSD1306_COLOR::black: for (int y = y1; y < y2; ++y) this->_screenRAM[x + (y / 8) * this->_WIDTH] &= ~(1 << (y & 7)); break; case SSD1306_COLOR::inverse: for (int y = y1; y < y2; ++y) this->_screenRAM[x + (y / 8) * this->_WIDTH] ^= (1 << (y & 7)); break; } } void SD1306::scroll() { int h = hch(_mutex_font); if (false) { for (int y = h; y < this->_HEIGHT; y++) for (int x = 0; x < this->_WIDTH / 8; ++x) this->_screenRAM[x + ((y - h) / 8) * this->_WIDTH] = this->_screenRAM[x + ((y - 0) / 8) * this->_WIDTH]; for (int y = _mutex_cy; y < this->_HEIGHT; ++y) drawHLine(0, this->_WIDTH, y, SSD1306_COLOR::black); } else { for (int y = h; y < this->_HEIGHT; y++) for (int x = 0; x < this->_WIDTH; ++x) drawPixel(x, y - h, getPixel(x, y)); for (int y = _mutex_cy; y < this->_HEIGHT; ++y) drawHLine(0, this->_WIDTH, y, SSD1306_COLOR::black); } } static inline int s_abs(int s) { return s >= 0 ? s : -s; } void SD1306::drawLine(int x0, int y0, int x1, int y1, SSD1306_COLOR color) { int dx = s_abs(x1 - x0), sx = x0 < x1 ? 1 : -1; int dy = s_abs(y1 - y0), sy = y0 < y1 ? 1 : -1; int err = (dx > dy ? dx : -dy) / 2, e2; for (;;) { this->drawPixel(x0, y0, color); if (x0 == x1 && y0 == y1) break; e2 = err; if (e2 > -dx) { err -= dy; x0 += sx; } if (e2 < dy) { err += dx; y0 += sy; } } } void SD1306::drawCircle(int x0, int y0, int radius, SSD1306_COLOR color) { int f = 1 - radius; int ddF_x = 0; int ddF_y = -2 * radius; int x = 0; int y = radius; drawPixel(x0, y0 + radius, color); drawPixel(x0, y0 - radius, color); drawPixel(x0 + radius, y0, color); drawPixel(x0 - radius, y0, color); while (x < y) { if (f >= 0) { y--; ddF_y += 2; f += ddF_y; } x++; ddF_x += 2; f += ddF_x + 1; drawPixel(x0 + x, y0 + y, color); drawPixel(x0 - x, y0 + y, color); drawPixel(x0 + x, y0 - y, color); drawPixel(x0 - x, y0 - y, color); drawPixel(x0 + y, y0 + x, color); drawPixel(x0 - y, y0 + x, color); drawPixel(x0 + y, y0 - x, color); drawPixel(x0 - y, y0 - x, color); } } void SD1306::drawString(const char *s, SSD1306_COLOR color) { const int w = wch(_mutex_font); const int h = hch(_mutex_font); while (*s) { if (_mutex_cx > this->_WIDTH - w) { _mutex_cy += h; _mutex_cx = 0; } if (_mutex_cy > this->_HEIGHT - h) { _mutex_cy -= h; _mutex_cx = 0; scroll(); } if (*s >= 32 && *s <= 126) { for (int y = 0; y < h; y++) { auto v = pch2(_mutex_font, *s, y); uint32_t bb = 1u << (8 * sizeof(v) - 1); for (int x = 0; x < w; ++x) { auto c = (v & bb) ? SSD1306_COLOR::white : SSD1306_COLOR::black; if (color == SSD1306_COLOR::black) c = c == SSD1306_COLOR::white ? SSD1306_COLOR::black : SSD1306_COLOR::white; drawPixel(x + _mutex_cx, y + _mutex_cy, c); bb >>= 1; } } } else if ((s[0] == '\n' && s[1] == '\r') || (s[0] == '\r' && s[1] == '\n')) { ++s; _mutex_cx = -w; _mutex_cy += h; } else if (*s == '\n' || *s == '\r') { _mutex_cx = -w; _mutex_cy += h; } ++s; _mutex_cx += w; } }
65a5a474ccff437b0fd213d300646e5d74bfda71
71b6e338f1fda053d0d924cbb5243ce7bb16d71f
/tests/test_helpers.cpp
7fd322385cbcaac1933d75c47cc2d7f5fac954ce
[]
no_license
fargies/qrrd
565c5a26ddf3a18e02dcbc6d12e78fc45fe63d53
951df74811feadf4ed8bdee833969e3fe453c96c
refs/heads/master
2020-05-02T03:17:04.963857
2014-01-08T07:22:35
2014-01-08T07:22:35
37,081,177
0
0
null
null
null
null
UTF-8
C++
false
false
1,766
cpp
test_helpers.cpp
/* ** Copyright (C) 2013 Fargier Sylvain <fargier.sylvain@free.fr> ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for any purpose, ** including commercial applications, and to alter it and redistribute it ** freely, subject to the following restrictions: ** ** 1. The origin of this software must not be misrepresented; you must not ** claim that you wrote the original software. If you use this software ** in a product, an acknowledgment in the product documentation would be ** appreciated but is not required. ** 2. Altered source versions must be plainly marked as such, and must not be ** misrepresented as being the original software. ** 3. This notice may not be removed or altered from any source distribution. ** ** test_helpers.cpp ** ** Created on: Nov 08, 2013 ** Original Author: Fargier Sylvain <fargier.sylvain@free.fr> ** */ #include <QCoreApplication> #include <QFile> #include "test_helpers.hpp" #include "config.h" namespace helpers { #ifndef SRC_DATA_DIR #warning SRC_DATA_DIR undefined #define SRC_DATA_DIR "." #endif #ifndef DATA_DIR #warning DATA_DIR undefined #define DATA_DIR "." #endif QString getDataPath() { static QString data_dir; if (data_dir.isEmpty()) { QString dir; dir = QCoreApplication::applicationDirPath() + "/data"; if (QFile::exists(dir)) data_dir = dir; else if (QFile::exists(SRC_DATA_DIR)) data_dir = SRC_DATA_DIR; else if (QFile::exists(DATA_DIR)) data_dir = DATA_DIR; } return data_dir; } }
ce9cb579e7cd33617a752e7da714ba5915bd89bf
b250f4c82f16cabb2a1fd28e7715fa36ca691c80
/uva/challenges/WhatIsTheCard/TestWhatIsTheCard.cxx
80839cf3cdf725ca81774629905f8f0911a6fcfe
[]
no_license
ismacaulay/problems
19ffd055211c22f3d1c1f6f45f63907202a38a52
49af9716d66887963814c8e3d7de1d6865e14e38
refs/heads/master
2021-08-15T17:53:08.953195
2017-11-18T02:03:06
2017-11-18T02:03:06
19,360,214
0
0
null
null
null
null
UTF-8
C++
false
false
248
cxx
TestWhatIsTheCard.cxx
#include <gtest/gtest.h> #include "WhatIsTheCard.h" /* ************************************************* * * No Tests - Challenge was mainly reading in * and erasing values. * ************************************************* */
2fd4b0cf851d966409752e17be23239ba9fbced4
616e188c75ed16fdf12d6070652b05f2296b0051
/match.cpp
5268d63c2781fe2d79851486672fedddc4f50986
[]
no_license
bhamrick/imgmatch
36d01c690d19a1c71911b440bc0d6a6ff7323e58
0d970fca3ba67186b0679f1dfecb7c7686b8012a
refs/heads/master
2016-09-06T08:14:33.486925
2009-08-04T17:04:34
2009-08-04T17:04:34
88,822
1
0
null
null
null
null
UTF-8
C++
false
false
6,469
cpp
match.cpp
#include<ctime> #include<cstdio> #include<vector> #include<cstdlib> #include<algorithm> #include"drawing.h" #define NVERT 10 #define NPOLY 50 #define NPOP 16 #define PMUT 0.3 #define PADD 0.1 #define PNEW 0.05 #define MAXMOVE 5 #define MAXCMOVE 0.2 #define MAXAMOVE 0.05 #define FRATE 50 using namespace std; double irandmax = 1.0/RAND_MAX; double diff(color* data1, color* data2, int size) { double ans = 0.0; for(int i = 0; i<size; i++) { ans+=(data1->r - data2->r)/255*(data1->r - data2->r)/255 + (data1->g - data2->g)/255*(data1->g - data2->g)/255 + (data1->b - data2->b)/255*(data1->b - data2->b)/255; data1++; data2++; } return ans; } struct polygon { vector< pair<int,int> > v; color c; }; struct polyimg { int w, h; vector<polygon> poly; }; bool operator<(polyimg a, polyimg b) { return false; } void init_polygon(polygon& p, int w, int h) { for(int i = 0; i<3; i++) { p.v.push_back(make_pair((int)(rand()*irandmax*w),(int)(rand()*irandmax*h))); } p.c.r = (double)rand()*irandmax*255; p.c.g = (double)rand()*irandmax*255; p.c.b = (double)rand()*irandmax*255; p.c.a = (double)rand()*irandmax; } void init_polyimg(polyimg& p, int w, int h) { polygon pol; init_polygon(pol,w,h); p.poly.push_back(pol); p.w = w; p.h = h; } vector< pair<int,int> > trim(vector< pair<int,int> > v) { sort(v.begin(), v.end()); vector< pair<int,int> > lenv, uenv; for(int i = 0; i<v.size(); i++) { if(lenv.size() == 0 || lenv[lenv.size()-1].first != v[i].first) { while(lenv.size() > 1 && (lenv[lenv.size()-1].second-lenv[lenv.size()-2].second)*(v[i].first-lenv[lenv.size()-2].first) >= (v[i].second-lenv[lenv.size()-2].second)*(lenv[lenv.size()-1].first-lenv[lenv.size()-2].first)) lenv.pop_back(); lenv.push_back(v[i]); } while(uenv.size() > 0 && uenv[uenv.size()-1].first == v[i].first) uenv.pop_back(); while(uenv.size() > 1 && (uenv[uenv.size()-1].second-uenv[uenv.size()-2].second)*(v[i].first-uenv[uenv.size()-2].first) <= (v[i].second-uenv[uenv.size()-2].second)*(uenv[uenv.size()-1].first-uenv[uenv.size()-2].first)) uenv.pop_back(); uenv.push_back(v[i]); } vector< pair<int,int> > ans; int i1=0, i2=0; while(i1 < lenv.size() && i2 < uenv.size()) { if(lenv[i1] == uenv[i2]) { ans.push_back(lenv[i1]); i1++; i2++; } else if(lenv[i1] < uenv[i2]) { ans.push_back(lenv[i1]); i1++; } else { ans.push_back(uenv[i2]); i2++; } } return ans; } void mutate(polyimg& p) { if(rand()*irandmax < PNEW && p.poly.size() < NPOLY) { polygon pol; init_polygon(pol,p.w,p.h); p.poly.push_back(pol); } for(int i = 0; i<p.poly.size(); i++) { if(rand()*irandmax < PMUT) { if(rand()*irandmax < PADD && p.poly[i].v.size() < NVERT) { p.poly[i].v.push_back(make_pair((int)(rand()*irandmax*p.w),(int)(rand()*irandmax*p.h))); } else { int j = (int)(rand()*irandmax*p.poly[i].v.size()); int dx = (int)((2.0*rand()*irandmax-1.0)*MAXMOVE), dy = (int)((2.0*rand()*irandmax-1.0)*MAXMOVE); double dr = (int)((2.0*rand()*irandmax-1.0)*MAXCMOVE), dg = (int)((2.0*rand()*irandmax-1.0)*MAXCMOVE), db = (int)((2.0*rand()*irandmax-1.0)*MAXCMOVE), da = (int)((2.0*rand()*irandmax-1.0)*MAXAMOVE); if(rand()*irandmax < 0.5) { p.poly[i].v[j].first += dx; if(p.poly[i].v[j].first < 0) p.poly[i].v[j].first = 0; if(p.poly[i].v[j].first >= p.w) p.poly[i].v[j].first = p.w-1; p.poly[i].v[j].second += dy; if(p.poly[i].v[j].second < 0) p.poly[i].v[j].second = 0; if(p.poly[i].v[j].second >= p.h) p.poly[i].v[j].second = p.h-1; } else { p.poly[i].c.r += dr; if(p.poly[i].c.r < 0) p.poly[i].c.r = 0; if(p.poly[i].c.r > 255) p.poly[i].c.r = 255; p.poly[i].c.g += dg; if(p.poly[i].c.g < 0) p.poly[i].c.g = 0; if(p.poly[i].c.g > 255) p.poly[i].c.g = 255; p.poly[i].c.b += db; if(p.poly[i].c.b < 0) p.poly[i].c.b = 0; if(p.poly[i].c.b > 255) p.poly[i].c.b = 255; p.poly[i].c.a += da; if(p.poly[i].c.a < 0) p.poly[i].c.a = 0; if(p.poly[i].c.a > 1) p.poly[i].c.a = 1; } } } p.poly[i].v = trim(p.poly[i].v); } } void crossover(polyimg& p1, polyimg p2) { int c1 = (int)(((double)rand()*irandmax)*p1.poly.size()); vector<polygon> p; for(int i = 0; i<c1; i++) { p.push_back(p1.poly[i]); } for(int i = c1; i<p2.poly.size(); i++) { p.push_back(p2.poly[i]); } p1.poly = p; } void draw_polyimg(color* buf, polyimg p) { for(int i = 0; i<p.poly.size(); i++) { draw_polygon(p.poly[i].v,p.poly[i].c,buf,p.w,p.h); } } void save_polyimg(polyimg& p, char* fname) { FILE *fout = fopen(fname,"w"); fprintf(fout,"P3\n%d %d\n255\n",p.w,p.h); color *buf = new color[p.w*p.h]; draw_polyimg(buf,p); for(int y = 0; y<p.h; y++) { for(int x = 0; x<p.w; x++) { int i = x*p.h + y; fprintf(fout,"%d %d %d\n",(int)buf[i].r,(int)buf[i].g,(int)buf[i].b); } } fclose(fout); delete[] buf; } int main(int argc, char** argv) { if(argc == 1) { printf("Usage: %s filename\n",argv[0]); return 0; } srand(time(NULL)); color* target; int h, w, gen = 0; FILE *fin = fopen(argv[1],"r"); char s[5]; fscanf(fin,"%s",s); fscanf(fin,"%d%d",&w,&h); int foo; fscanf(fin,"%d",&foo); target = new color[h*w]; for(int y = 0; y<h; y++) { for(int x = 0; x<w; x++) { int i = x*h+y; int r, g, b; fscanf(fin,"%d%d%d",&r,&g,&b); target[i].r = r; target[i].g = g; target[i].b = b; } } printf("%d %d\n",w,h); polyimg pop[NPOP]; for(int i = 0; i<NPOP; i++) init_polyimg(pop[i],w,h); pair<double,polyimg> tpop[NPOP]; while(1) { gen++; for(int i = 0; i<NPOP; i++) { color *buf = new color[w*h]; tpop[i].second = pop[i]; draw_polyimg(buf,pop[i]); tpop[i].first = diff(buf,target,w*h); delete[] buf; } sort(tpop,tpop+NPOP); if(gen%FRATE==1) { char foutname[100]; save_polyimg(tpop[0].second,(char*)"out.ppm"); sprintf(foutname,"movie/out%07d.ppm",gen/FRATE); save_polyimg(tpop[0].second,foutname); printf("Generation %d\tBest error: %.0lf\n",gen,tpop[0].first); fflush(stdout); } pop[0] = tpop[0].second; for(int i = 1; i<NPOP/3; i++) { pop[1] = tpop[i].second; mutate(pop[1]); } for(int i = NPOP/3; i<NPOP-1; i++) { if((double)rand()*irandmax < 0.5) { pop[i] = tpop[i].second; crossover(pop[i],tpop[0].second); mutate(pop[i]); } else { pop[i] = tpop[0].second; crossover(pop[i],tpop[i].second); mutate(pop[i]); } } pop[NPOP-1] = tpop[0].second; mutate(pop[NPOP-1]); } return 0; }
14253d8a23abc7cf13768691b330f128075c010e
26bb69977888fdc5f701f32027a0a6ae33c769f2
/peripheral/printer_normal_80.cpp
5cf9f5c962b2f42c77358fd0edca5fa80b71f4be
[]
no_license
AM20302030/fastfd
a7ab37e3abdd9728f58fdcc76679fb9b1d1d22bf
4b23ee7e736afac6603588dcf8079fae889134f5
refs/heads/master
2023-03-15T23:21:51.398989
2017-07-17T02:19:45
2017-07-17T02:19:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
151
cpp
printer_normal_80.cpp
#include "printer_normal_80.h" Printer_Normal_80::Printer_Normal_80() { } blockIns Printer_Normal_80::tran(const blockIns &bins) { return bins; }
76edf1672f127eeb6f4c43918d95c37c22cb84b6
c4c8d1dcf23402574862d9fbf6db2a6f60da9814
/Thunderclad/Thunderclad/Source/Rendering/DirectX 11/TCGraphicsContext_DX11.cpp
2de18e221de246b8c8831d5f549cf054339f5d45
[]
no_license
Seabolt/Thunderclad2
7e0b1be93b83569e57d603df4fb2236487d0acfb
0688fe620d9ba5fa81cd22002105113b6ba81595
refs/heads/master
2021-03-24T13:43:28.321561
2016-07-18T05:30:11
2016-07-18T05:30:11
30,156,419
1
1
null
null
null
null
UTF-8
C++
false
false
14,289
cpp
TCGraphicsContext_DX11.cpp
// // TCGraphicsContext_DX11.cpp // Will define the functionality for a TCGraphicsContext_DX11. // // // Includes // #include "TCGraphicsContext_DX11.h" #include "TCWindow.Win32.h" #include "TCLogger.h" #include "TCVertexBuffer.h" #include "TCIndexBuffer.h" #if TC_GRAPHICS_PLATFORM_DX11 // // Defines // #define TC_SAFE_RELEASE( resource ) { if( resource != NULL ) { resource->Release(); resource = NULL; } } #define TC_GRAPHICS_CONTEXT_LOG_ERROR( string ) { TCLogger::GetInstance()->LogError( TCString("[TCGraphicsContext] ") + string ); } // // Default Constructor // - Will initialize the object to a safe state. // Inputs: // - None. // Outputs: // - None. // TCGraphicsContext_DX11::TCGraphicsContext_DX11() : TCGraphicsContext() { mDevice = NULL; mDeviceContext = NULL; mSwapChain = NULL; mBackBufferView = NULL; mDepthStencilView = NULL; mDepthStencilState = NULL; mDepthStencilTexture = NULL; mBufferContext = new TCBufferContext_DX11( this ); } // // Destructor // - Will release all resources for this object // Inputs: // - None. // Outputs: // - None. // TCGraphicsContext_DX11::~TCGraphicsContext_DX11() { Destroy(); } // // Initialize // - Will allocate all resources associated with this object. // Inputs: // - Description& desc: The structure that will define how to initialize this object. // Outputs: // - TCResult: The result of the method // - Success: The object initialized successfully. // - Failure_InvalidParameter: The description contains an invalid parameter. // TCResult TCGraphicsContext_DX11::Initialize( TCGraphicsContext::Description& desc ) { // // Call the base initialize. // TCResult result = TCGraphicsContext::Initialize( desc ); if( TC_FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed initialize the base class!" ); return result; } // // Initialize the swap chain. // result = InitializeSwapChain( desc ); if( TC_FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed to initialize the swap chain!" ); return result; } // // Initialize the device. // result = InitializeDevice( desc ); if( TC_FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed initialize the device!" ); return result; } // // Initialize the back buffer // result = InitializeBackBuffer( desc ); if( TC_FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed initialize the back buffer!" ); return result; } // // Initialize the view port // result = InitializeViewport( desc ); if( TC_FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed initialize the viewport!" ); return result; } // // Initialize all our sub modules. // result = InitializeSubContexts(); return Success; } // // Destroy // - Will release all resources associated with this object. // Inputs: // - None. // Outputs: // - TCResult: The result of the method. // - Success: The object cleaned up successfully. // TCResult TCGraphicsContext_DX11::Destroy() { if (mBufferContext != NULL) { mBufferContext->Release(); delete mBufferContext; mBufferContext = NULL; } if( mShaderContext != NULL ) { mShaderContext->Release(); delete mShaderContext; mShaderContext = NULL; } TC_SAFE_RELEASE( mBackBufferView ); TC_SAFE_RELEASE( mDepthStencilView ); TC_SAFE_RELEASE( mDepthStencilTexture ); TC_SAFE_RELEASE( mDepthStencilState ); TC_SAFE_RELEASE( mRasterizerState ); TC_SAFE_RELEASE( mSwapChain ); TC_SAFE_RELEASE( mDeviceContext ); TC_SAFE_RELEASE( mDevice ); return Success; } // // BeginFrame // - Will prepare the frame for rendering. // Inputs: // - None. // Outputs: // - TCResult: The result of the operation. // - Success: The frame was prepared correctly. // TCResult TCGraphicsContext_DX11::BeginFrame() { FLOAT color[ 4 ] = { 0.2f, 0.8f, 0.3f, 1.0f }; mDeviceContext->ClearRenderTargetView( mBackBufferView, color ); return Success; } // // EndFrame // - Will finish a frame of rendering. // Inputs: // - None. // Outputs: // - TCResult: The result of the operation. // - Success: The frame finished correctly. // TCResult TCGraphicsContext_DX11::EndFrame() { TCResult result = SwapBuffers(); if( TC_FAILED( result ) ) { return result; } return Success; } // // SwapBuffers // - Will swap buffers from the back buffer to the front buffer. // Inputs: // - None. // Outputs: // - TCResult: The result of the operation. // - Success: The buffers were swapped correctly. // TCResult TCGraphicsContext_DX11::SwapBuffers() { HRESULT result = mSwapChain->Present( 0, 0 ); if( FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed to swap buffers!" ); return Failure_InvalidOperation; } return Success; } // // IsValidDescription // - Will determine if a description is valid. // Inputs: // - Description& desc: The description to test if all it's variables are valid to initialize the context. // Outputs: // - bool: Was the description valid? // bool TCGraphicsContext_DX11::IsValidDescription( TCGraphicsContext_DX11::Description& desc ) { return TCGraphicsContext::IsValidDescription( desc ); } // // InitializeSwapChain // - Will initialize the swap chain for this context. // Inputs: // - Description& desc: The description to initialize this from. // Outputs: // - TCResult: The result of this operation. // - Success: The operation succeeded. // - Failure_InvalidParameter: A parameter in the description isn't valid. // TCResult TCGraphicsContext_DX11::InitializeSwapChain( TCGraphicsContext_DX11::Description& desc ) { if( desc.mWindow == NULL ) return Failure_InvalidParameter; TCWindow_Win32* window = (TCWindow_Win32*)desc.mWindow; mSwapChainDesc.BufferCount = 1; // How many back buffers mSwapChainDesc.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; // RGBA 32 bit color buffer mSwapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; // Allow the back buffer to be a render target mSwapChainDesc.OutputWindow = window->GetHWindow(); // The window to render to mSwapChainDesc.Windowed = !window->IsFullScreen(); // Are we using windowed? mSwapChainDesc.BufferDesc.Width = (UINT)window->GetBounds().GetWidth(); // Back buffer width mSwapChainDesc.BufferDesc.Height = (UINT)window->GetBounds().GetHeight();// Back buffer height mSwapChainDesc.SampleDesc.Count = 1; // MSAA sample count mSwapChainDesc.SampleDesc.Quality = 0; // MSAA quality return Success; } // // InitializeDevice // - Will initialize the DirectX 11 device context. // Inputs: // - Description& desc: The description to use to initialize the device from. // Outputs: // - TCResult: The result of this operation. // - Success: The operation succeeded. // - Failure_InvalidOperation: The device failed to be created. // - Failure_InvalidParameter: A parameter in the description isn't valid. // TCResult TCGraphicsContext_DX11::InitializeDevice( TCGraphicsContext_DX11::Description& desc ) { // // Determine the type of device to create. // DWORD deviceFlags = 0; #if TC_BUILD_CONFIGURATION_DEBUG deviceFlags |= D3D11_CREATE_DEVICE_DEBUG; #endif // // Create the device and device context. // HRESULT result = D3D11CreateDeviceAndSwapChain( NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, D3D11_CREATE_DEVICE_DEBUG, NULL, NULL, D3D11_SDK_VERSION, &mSwapChainDesc, &mSwapChain, &mDevice, NULL, &mDeviceContext ); // // Determine if the creation was successful. // if( FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( TCString( "Failed to intialize the device and swap chain with error: " ) + TCString( (int)result ) ); return Failure_InvalidOperation; // The device failed to create } return Success; // All good! } // // InitializeViewport // - Will initialize the viewport for the device context. // Inputs: // - Description& desc: The description to use to initialize the viewport from. // Outputs: // - TCResult: The result of this operation. // - Success: The operation succeeded. // - Failure_InvalidParameter: A parameter in the description isn't valid. // TCResult TCGraphicsContext_DX11::InitializeViewport( TCGraphicsContext_DX11::Description& desc ) { // // Create the viewport for the program // memset( &mViewport, 0, sizeof( D3D11_VIEWPORT ) ); mViewport.TopLeftX = (FLOAT)mWindow->GetPosition().x; mViewport.TopLeftY = (FLOAT)mWindow->GetPosition().y; mViewport.Width = (FLOAT)mWindow->GetBounds().GetWidth(); mViewport.Height = (FLOAT)mWindow->GetBounds().GetHeight(); // // Set the viewport for the program // mDeviceContext->RSSetViewports( 1, &mViewport ); // // Set up the correct rasterizer state for us // D3D11_RASTERIZER_DESC rasterizerDesc; rasterizerDesc.AntialiasedLineEnable = FALSE; // Should we smooth lines? rasterizerDesc.DepthBias = 0; // Should we apply a bias to our depth valids rasterizerDesc.DepthBiasClamp = 0.0f; // Should we a bias to the clamp. rasterizerDesc.SlopeScaledDepthBias = 0.0f; // Should we apply a bias to projective aliasing rasterizerDesc.DepthClipEnable = FALSE; // Should we enable depth clipping? rasterizerDesc.FillMode = D3D11_FILL_SOLID; // How should we fill the geometry rasterizerDesc.FrontCounterClockwise = FALSE; // Cull order. rasterizerDesc.MultisampleEnable = FALSE; // Should we enable MSAA. rasterizerDesc.ScissorEnable = FALSE; // Should we enable scissoring. rasterizerDesc.CullMode = D3D11_CULL_NONE; // Cull mode. HRESULT result = mDevice->CreateRasterizerState( &rasterizerDesc, &mRasterizerState ); if( FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed to create the default rasterizer state!" ); return Failure_InvalidParameter; } mDeviceContext->RSSetState( mRasterizerState ); return Success; } // // InitializeBackBuffer // - Will initialize the back buffer for this context. // Inputs: // - Description& desc: The description to use to initialize the back buffer from. // Outputs: // - TCResult: The result of this operation. // - Success: The operation succeeded. // - Failure_InvalidParameter: A parameter in the description isn't valid. // - Failure_InvalidOperation: The operation failed. // TCResult TCGraphicsContext_DX11::InitializeBackBuffer( TCGraphicsContext_DX11::Description& desc ) { HRESULT result = 0; // // Store the back buffer into a texture. // ID3D11Texture2D* pBackBuffer = NULL; // Use a temporary texture to store the buffer mSwapChain->GetBuffer( 0, __uuidof(ID3D11Texture2D), (LPVOID*)&pBackBuffer ); // The the back buffer // // Get the render target view for the back buffer. // result = mDevice->CreateRenderTargetView( pBackBuffer, NULL, &mBackBufferView ); // Create the RenderTargetView if( FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed to create the back buffer!" ); return Failure_InvalidOperation; } // // Release the previous back buffer texture. // pBackBuffer->Release(); // // Create a texture to store the depth stencil buffer. // D3D11_TEXTURE2D_DESC depthDesc; memset( &depthDesc, 0, sizeof( depthDesc ) ); depthDesc.Width = (UINT)mWindow->GetBounds().GetWidth(); // The width of the depth buffer. depthDesc.Height = (UINT)mWindow->GetBounds().GetHeight(); // The height of the depth buffer. depthDesc.ArraySize = 1; // The number of textures in the texture array. A cube map would have 6 textures. depthDesc.CPUAccessFlags = 0; // How should the CPU be able to access this texture. It should be read only. depthDesc.MipLevels = 1; // The number of mip levels. Only one for the back buffer. depthDesc.MiscFlags = 0; // Any new flags. depthDesc.Usage = D3D11_USAGE_DEFAULT; // The usage for the depth buffer. depthDesc.SampleDesc.Count = 1; // The number of multi-samples in MSAA. depthDesc.SampleDesc.Quality = 0; // The quality of the MSAA. depthDesc.BindFlags = D3D11_BIND_DEPTH_STENCIL; // The type of texture. // Note: DX11 doesn't have a D24 format depthDesc.Format = DXGI_FORMAT_D24_UNORM_S8_UINT; // The format for the depth texture. // // Create the depth stencil texture // result = mDevice->CreateTexture2D( &depthDesc, NULL, &mDepthStencilTexture ); if( FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed to create the depth stencil texture!" ); return Failure_InvalidOperation; // Failed to create the depth stencil texture. } // // Set up the depth stencil state // D3D11_DEPTH_STENCIL_DESC depthStencilDescription; memset( &desc, 0, sizeof( desc ) ); depthStencilDescription.DepthEnable = 1; depthStencilDescription.DepthFunc = D3D11_COMPARISON_LESS; depthStencilDescription.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; depthStencilDescription.StencilEnable = 0; result = mDevice->CreateDepthStencilState( &depthStencilDescription, &mDepthStencilState ); if( FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed to create the depth stencil state!" ); return Failure_InvalidOperation; } // // Set the depth stencil state // mDeviceContext->OMSetDepthStencilState( mDepthStencilState, 0 ); // // Set up depth stencil view // D3D11_DEPTH_STENCIL_VIEW_DESC viewDesc; viewDesc.Format = depthDesc.Format; viewDesc.ViewDimension = D3D11_DSV_DIMENSION_TEXTURE2D; viewDesc.Texture2D.MipSlice = 0; viewDesc.Flags = 0; // // Create depth stencil view // result = mDevice->CreateDepthStencilView( mDepthStencilTexture, &viewDesc, &mDepthStencilView ); if( FAILED( result ) ) { TC_GRAPHICS_CONTEXT_LOG_ERROR( "Failed to create depth stencil view!" ); return Failure_InvalidOperation; } mDeviceContext->OMSetRenderTargets( 1, &mBackBufferView, mDepthStencilView ); return Success; } TCResult TCGraphicsContext_DX11::InitializeSubContexts() { // // Create our buffer context. // mBufferContext = new TCBufferContext_DX11( this ); if( mBufferContext == NULL ) { return Failure_OutOfMemory; } // // Create our shader context. // mShaderContext = new TCShaderContext_DX11( this ); if( mShaderContext == NULL ) { return Failure_OutOfMemory; } return Success; } #endif //TC_GRAPHICS_PLATFORM_DX11
b3298c431079d8e660ca7458334446b9eca55f3e
6cd1bf6544347c85cabaf672a5ed2dad94a18b63
/kakomon/aising2019_c.cpp
10655c16212736f7a53a073795c023657370cf5d
[]
no_license
Shell-Wataru/AtCoder
0a35f12478ac0ab54711171f653ce7bed5189c92
0ba32250f4e4a44459a4cd231ff47a5f46c4fe87
refs/heads/master
2023-01-10T04:21:25.199532
2023-01-09T04:16:30
2023-01-09T04:16:30
89,144,933
0
0
null
null
null
null
UTF-8
C++
false
false
2,184
cpp
aising2019_c.cpp
#include <iostream> #include <algorithm> #include <vector> #include <deque> #include <queue> #include <set> #include <map> #include <limits> #include <cmath> #include <iomanip> #include <functional> #include <random> #include <boost/multiprecision/cpp_int.hpp> using namespace std; using ll = long long; struct UnionFind { vector< int > data; UnionFind(int sz) { data.assign(sz, -1); } bool unite(int x, int y) { x = find(x), y = find(y); if(x == y) return (false); if(data[x] > data[y]) swap(x, y); data[x] += data[y]; data[y] = x; return (true); } bool same(int x, int y) { x = find(x), y = find(y); return x == y; } int find(int k) { if(data[k] < 0) return (k); return (data[k] = find(data[k])); } int size(int k) { return (-data[find(k)]); } }; int main() { // 整数の入力 ll N,M; cin >> N >> M; vector<string> G(N); UnionFind uf(N*M); vector<pair<ll,ll>> direction = { {1,0}, {-1,0}, {0,1}, {0,-1}, }; for (size_t i = 0; i < N; i++) { cin >> G[i]; } for(int i = 0;i < N;i++){ for(int j = 0;j < M;j++){ for(auto &p:direction){ ll next_i = i + p.first; ll next_j = j + p.second; if (0 <= next_i && next_i < N && 0 <= next_j && next_j < M){ if ((G[i][j] == '#' && G[next_i][next_j] == '.') || (G[i][j] == '.' && G[next_i][next_j] == '#')){ uf.unite(M*i+j,M*next_i + next_j); } } } } } vector<ll> black_count(N*M); for(int i = 0;i < N;i++){ for(int j = 0;j < M;j++){ if (G[i][j] == '#'){ black_count[uf.find(M*i+j)]++; } } } ll ans = 0; for(int i = 0;i < N;i++){ for(int j = 0;j < M;j++){ if (uf.find(M*i+j) == M*i+j){ // cout << uf.size(M*i+j) << "," << black_count[M*i+j] << endl; ans += (uf.size(M*i+j) - black_count[M*i+j])*black_count[M*i+j]; } } } cout << ans << endl; return 0; }
319a0ee458387ce4f8b1350c8b83359d1c25921a
587a987f72a6a0b366fdd52a611a56e10972491a
/LeetCode/406_根据身高重建队列.cpp
c9060ac71684ec843cff7107cae710cb0d5cb08b
[]
no_license
SeanCST/Algorithm_Problems
18e4115dfd8d6b51cef6fad90b537d989123d655
03f7de3e4717677967d8b11ed4d7f0285debdb61
refs/heads/master
2023-07-27T22:33:56.783638
2023-07-17T14:13:49
2023-07-17T14:13:49
144,162,747
0
0
null
null
null
null
UTF-8
C++
false
false
1,394
cpp
406_根据身高重建队列.cpp
class Solution { public: vector<pair<int, int>> reconstructQueue(vector<pair<int, int>>& people) { vector<pair<int, int>> res; // 按身高降序,k 值升序排序 sort(people.begin(), people.end(), [](const pair<int, int>& a, const pair<int, int>& b){ return a.first > b.first || (a.first == b.first && a.second < b.second); }); // 按排好的序依次插入到结果中 for(auto p : people) { res.insert(res.begin() + p.second, p); } return res; } }; class Solution { public: static bool cmp(vector<int>& a, vector<int>& b) { return (a[0] > b[0]) || (a[0] == b[0] && a[1] < b[1]); } vector<vector<int>> reconstructQueue(vector<vector<int>>& people) { vector<vector<int>> res; // 按照身高 h 降序排序,对于同身高的人按照 k 升序排序 sort(people.begin(), people.end(), cmp); // 以这样的顺序插入,对于不同的身高,保证后插入的身高矮于先插入的,不会造成先插入的那些序号出问题 // 对于相同的身高,后插入的序号比先插入的要大,不会造成后插入的插到前面造成先插入的序号出问题 for(auto p : people) { res.insert(res.begin() + p[1], p); } return res; } };
a12c7c940880e0fdae21fbf28fe62556668d79bd
7fd64b86c7e8f63d6238fe93ccf6e62a4b8ebc66
/codeforces/435/B.cpp
f4a1892900aa63ce3a076523f73c00c0f3ffcb5d
[]
no_license
Mohammad-Yasser/harwest
775ba71303cc2849f71e82652263f31e79bd8e04
d01834a9a41c828c8c548a115ecefd77ff2d6adc
refs/heads/master
2023-02-02T23:37:54.186079
2013-09-19T19:28:00
2020-12-21T14:30:32
323,233,072
0
0
null
null
null
null
UTF-8
C++
false
false
422
cpp
B.cpp
#include <bits/stdc++.h> using namespace std; int main() { string s; int n; cin >> s >> n; for (int i = 0; i < s.size() && n; ++i) { int ind = max_element(s.begin() + i, s.begin() + min((int) s.size(), i + n + 1)) - s.begin(); if (s[i] < s[ind]) for (; ind > i; swap(s[ind], s[ind - 1]), --ind, --n) ; } cout << s; }
143e3c919db5273f76039d200012a5bea1a4f08f
f5d6fc9408117af2d4ec9ca6b10dba91f0e65405
/dDPV.cpp
494f57be7f09da9f1b013c99e5281f8b76016890
[]
no_license
bvrstich/v2.5DM-spin
8a2628995e33dcafd2171bce10c80a4ef04bf3f4
aa315f3872ff169aacbda4515b81288a9418e3fa
refs/heads/master
2021-01-15T17:07:06.722112
2012-08-27T14:09:18
2012-08-27T14:09:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,827
cpp
dDPV.cpp
#include <iostream> #include <cmath> #include <fstream> using std::ostream; using std::ofstream; using std::ifstream; using std::endl; using std::ios; #include "include.h" int dDPV::M; int dDPV::N; /** * initialize the static variables * @param M_in nr of sp orbs * @param N_in nr of particles */ void dDPV::init(int M_in,int N_in){ M = M_in; N = N_in; } /** * standard constructor on a dDPM input, diagonalizes a dDPM and puts the eigenvalues in the allocated dDPV object */ dDPV::dDPV(dDPM &ddpm) { ddpv = new BlockVector<rxTPM> * [M]; for(int l = 0;l < M;++l) ddpv[l] = new BlockVector<rxTPM> (ddpm[l]); } /** * copy constructor: * @param ddpv_c object that will be copied into this. */ dDPV::dDPV(const dDPV &ddpv_c) { ddpv = new BlockVector<rxTPM> * [M]; for(int l = 0;l < M;++l) ddpv[l] = new BlockVector<rxTPM> (ddpv_c[l]); } /** * destructor */ dDPV::~dDPV(){ for(int l = 0;l < M;++l) delete ddpv[l]; delete [] ddpv; } ostream &operator<<(ostream &output,const dDPV &ddpv_p){ for(int l = 0;l < ddpv_p.gM();++l){ output << endl; output << l << endl; output << endl; output << ddpv_p[l] << endl; } return output; } /** * @return number of particles */ int dDPV::gN() const{ return N; } /** * @return number of sp orbitals */ int dDPV::gM() const{ return M; } /** * access to the individual Vector<rxTPM> objects * @param l the index of the object you want */ BlockVector<rxTPM> &dDPV::operator[](int l){ return *ddpv[l]; } /** * access to the individual Vector<rxTPM> objects: the const version * @param l the index of the object you want */ const BlockVector<rxTPM> &dDPV::operator[](int l) const{ return *ddpv[l]; } /** * overload equality operator * @param ddpv_c dDPV object to be copied into this */ dDPV &dDPV::operator=(const dDPV &ddpv_c){ for(int l = 0;l < M;++l) *ddpv[l] = ddpv_c[l]; return *this; } /** * overload equality operator on a double, set all the numbers in the vector equal to parameter a * @param a the number */ dDPV &dDPV::operator=(double a){ for(int l = 0;l < M;++l) *ddpv[l] = a; return *this; } /** * overload += operator * @param ddpv_p the dDPV object to be added to this */ dDPV &dDPV::operator+=(const dDPV &ddpv_p){ for(int l = 0;l < M;++l) *ddpv[l] += ddpv_p[l]; return *this; } /** * overload -= operator * @param ddpv_m the dDPV object to be deducted from this */ dDPV &dDPV::operator-=(const dDPV &ddpv_m){ for(int l = 0;l < M;++l) *ddpv[l] -= ddpv_m[l]; return *this; } /** * add the ddpv ddpv_p times the constant alpha to this * @param alpha the constant to multiply the ddpv_p with * @param ddpv_p the dDPV to be multiplied by alpha and added to this */ dDPV &dDPV::daxpy(double alpha,const dDPV &ddpv_p){ for(int l = 0;l < M;++l) ddpv[l]->daxpy(alpha,ddpv_p[l]); return *this; } /** * @return the sum of all the elements in the vector */ double dDPV::sum() const{ double ward = 0.0; for(int l = 0;l < M;++l) ward += ddpv[l]->sum(); return ward; } /** * @return the logarithm of the product of all the elements in the vector (so the sum of all the logarithms) */ double dDPV::log_product() const { double ward = 0.0; for(int l = 0;l < M;++l) ward += ddpv[l]->log_product(); return ward; } /** * @return inproduct of (*this) dDPV with ddpv_i * @param ddpv_i input dDPV */ double dDPV::ddot(const dDPV &ddpv_i) const{ double ward = 0.0; for(int l = 0;l < M;++l) ward += ddpv[l]->ddot(ddpv_i[l]); return ward; } /** * Scale the ddpv (*this) with parameter alpha * @param alpha scalefactor */ void dDPV::dscal(double alpha){ for(int l = 0;l < M;++l) ddpv[l]->dscal(alpha); } /** * @return the minimal element present in this dDPV object. * watch out, only works when dDPV is filled with the eigenvalues of a diagonalized Matrix object */ double dDPV::min() const { double ward = ddpv[0]->min(); for(int l = 1;l < M;++l) if(ddpv[l]->min() < ward) ward = ddpv[l]->min(); return ward; } /** * @return the maximal element present in this dDPV object. * watch out, only works when dDPV is filled with the eigenvalues of a diagonalized Matrix object */ double dDPV::max() const { double ward = ddpv[0]->max(); for(int l = 1;l < M;++l) if(ddpv[l]->max() > ward) ward = ddpv[l]->max(); return ward; } /** * Function used by the EIG::lsfunc function, used in the line search algorithm. * @param alpha steplenght in the search direction. */ double dDPV::lsfunc(double alpha) const { double ward = 0; for(int l = 0;l < M;++l) ward += ddpv[l]->lsfunc(alpha); return ward; }
bb2886515989120f5cd2f8963830f532260f0618
aba765c5993b8d1074622441089a55a1610ce18e
/include/python/trident.h
13dcfbdaa992fa9d6eb00cd5e2161f623e3ba319
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
karmaresearch/trident
cbf3dfa7d81c93ac40c76782564d0e453f605fa3
621ed49c648c811d5f69617833539f419766d3be
refs/heads/master
2023-08-03T23:09:38.295697
2023-07-19T07:21:15
2023-07-19T07:21:15
97,223,343
23
9
Apache-2.0
2021-09-30T09:04:25
2017-07-14T10:40:40
C++
UTF-8
C++
false
false
1,946
h
trident.h
/* * Copyright 2017 Jacopo Urbani * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. **/ #ifndef _PYTHON_H #define _PYTHON_H #include <Python.h> #include <trident/kb/kb.h> #include <trident/kb/querier.h> #include <trident/ml/batch.h> #include <trident/ml/embeddings.h> #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include <layers/TridentLayer.hpp> typedef struct { PyObject_HEAD KB *kb = NULL; Querier *q = NULL; std::unique_ptr<TridentLayer> db; bool rmKbOnDelete = false; } trident_Db; typedef struct { PyObject_HEAD Querier *q; PairItr *itr; char pos; } trident_Itr; typedef struct { PyObject_HEAD std::shared_ptr<Embeddings<double>> E; std::shared_ptr<Embeddings<double>> R; } trident_Emb; extern PyTypeObject trident_ItrType; extern PyTypeObject trident_DbType; extern PyTypeObject trident_EmbType; typedef struct { PyObject_HEAD std::unique_ptr<BatchCreator> creator; std::vector<uint64_t> batch1; std::vector<uint64_t> batch2; std::vector<uint64_t> batch3; int64_t batchsize; } trident_Batcher; extern PyTypeObject trident_BatcherType; PyMODINIT_FUNC PyInit_analytics(void); #endif
6354323f40e7fe1a660f2c2b63b49f88d82b956c
b443baf79a4f62d1df92950204215e319f27e2fb
/intro/firstDigit.cpp
388eb08708e9530000a36b1dc1517733a65dfe67
[]
no_license
shubhgkr/codesignal
2e956146cdbaddca73052b2b24045f45677e383c
d85feea1d33f67853db0b53a9ec6d07d853bc991
refs/heads/master
2018-11-03T01:58:57.536629
2018-10-22T19:14:27
2018-10-22T19:14:27
144,750,495
0
0
null
null
null
null
UTF-8
C++
false
false
141
cpp
firstDigit.cpp
#include <string> char firstDigit(std::string inputString) { for (char ch : inputString) if(isdigit(ch)) return ch; }
0951450df4cceeb22cf2ed2d6e6b1c3dd89e81b4
b39889e876c8f787a926383b61504fd22518d5c4
/HackerEarth/PrimeString/main.cpp
6c4ab0d6e5c4860a7fab85a38aee21f8590eae69
[]
no_license
Pujolsluis/ACM-Training
553244cd80c7ea9a55d8c0107d5b9eb69ef8c5e1
a380fd55102544112628731b50b8ec731c36d55b
refs/heads/master
2021-01-23T04:19:46.857889
2017-11-02T21:30:03
2017-11-02T21:30:03
86,184,004
0
0
null
null
null
null
UTF-8
C++
false
false
809
cpp
main.cpp
#include <iostream> #include <map> using namespace std; bool isPrime(int n){ if(n == 1) return false; for(int i=2; i<=n/2; i++){ if(n%i == 0) return false; } return true; } int main() { int T; cin >> T; for(int i=0; i<T; i++){ map<char,int> primeLetters; string s; cin >> s; for(int j=0; j<s.length(); j++){ primeLetters[s[j]]++; } map<char,int>::iterator it = primeLetters.begin(); bool success = true; for(it; it != primeLetters.end(); it++){ if(!isPrime(it->second)){ success = false; break; } } if(success && isPrime(primeLetters.size())) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
b0eb1eb094dc4e292e6540662857eec11405f300
b3e69c1445589625d059e1f3f08d87ddbf122fa4
/FTetris/FTetrisScene.cpp
67dc7db656af2cd86a5ae81ca747245df34554cd
[]
no_license
FKint/FTetris
f455eaad3b7ae3a4b48eb6f821829ced27f71a49
5c6e8d0507fb2770048b75ca14376ba6c41b66c4
refs/heads/master
2016-09-06T04:31:32.358145
2015-07-05T15:44:25
2015-07-05T15:44:25
38,574,318
0
0
null
null
null
null
UTF-8
C++
false
false
6,699
cpp
FTetrisScene.cpp
#include "FTetrisScene.h" #include <sstream> using namespace std; #include "FTetrisBlockSet.h" #include "FTetrisGameController.h" #include "FTetrisGameField.h" #include "FreeTypeCommandText.h" #include "FTetrisPreField.h" #include "FTextureLoader.h" #pragma message("ftetrisscene") FTetrisScene::FTetrisScene(FGameUI *ui, int rows, int cols):FScene(ui, 10, 25, true) { this->rows = rows; this->cols = cols; this->scale = 2.5; unsigned int amount = 1; unsigned int *buffer = new unsigned int[amount]; char *files[] = { "textures/smallborder1.bmp" }; int parameters[][3] = {{GL_LINEAR, GL_LINEAR, FGL_IMAGE_2D}}; if(FOpenGL::FLoadGLTextures(buffer, files, parameters, amount) != amount){ MessageBox(this->ui->GetHWND(), "Error at loading textures. Make sure the textures are in the .\textures directory.", "Error", 0); texture = false; }else{ texture = true; textureid = buffer[0]; } autorot = false; autorotx = false; autoroty = false; autorotz = false; } FTetrisScene::~FTetrisScene(void) { } void FTetrisScene::Init(){ objects[0] = mainfield = new FTetrisGameField(0, 1, 1, new FColor(0.3, 0.3, 0.8, .45), new FVertex(-.5, 0, 0), 1, (float)rows / (float)cols, this->scale, true, 0, 0, 0); gamecontroller = new FTetrisGameController(this, rows, cols, mainfield); objects[1] = prefield = new FTetrisPreField(gamecontroller->GetPreBlockSet(),4,4, new FColor(1, 1, 0, .5), new FVertex(1.2, .5, 0), 1, 1, 1, false, 0, 0, 0); objects[2] = pointstext = new FreeTypeText("0", "myfont.ttf", 20, new FColor(0.0, 1.0, .5), new FVertex(.5, .75, 0), FGL2DDrawObject::RIGHT, FGL2DDrawObject::VCENTER, 0, false); objects[3] = controltext = new FreeTypeText("Switch 2D/3D: D\nReset View: S\nAutorotate: R\n(Auto)Rotate X/Y/Z: X/Y/Z\nPause: P", "myfont.ttf", 12, new FColor(1, 1, 1), new FVertex(.2, -.2, 0), FGL2DDrawObject::LEFT, FGL2DDrawObject::TOP, 0, false); objects[4] = startgametext = new FreeTypeCommandText(this, START, 0, "Start Game", "myfont.ttf", 40, new FColor(1, 0, 1), new FVertex(0, 0, 0), FGL2DDrawObject::HCENTER, FGL2DDrawObject::VCENTER, 0); objects[5] = restartgametext = new FreeTypeCommandText(this, RESTART, 0, "Restart", "myfont.ttf", 20, new FColor(1, 0, 0), new FVertex(1, -1, 0), FGL2DDrawObject::RIGHT, FGL2DDrawObject::BOTTOM, 0); objects[6] = newgametext = new FreeTypeCommandText(this, NEW, 0, "New Game", "myfont.ttf", 40, new FColor(1.0, 0, 0), new FVertex(0, 0, 0), FGL2DDrawObject::HCENTER, FGL2DDrawObject::VCENTER, 0); objects[7] = pausegametext = new FreeTypeCommandText(this, PAUSE, 0, "Pause Game", "myfont.ttf", 20, new FColor(1, 0, 0), new FVertex(0, -1, 0), FGL2DDrawObject::HCENTER, FGL2DDrawObject::BOTTOM, 0); objects[8] = menutext = new FreeTypeCommandText(this, FGame::GOTO, FGame::BASEMENU, "Menu", "myfont.ttf", 20, new FColor(0, 1, 0), new FVertex(-1, -1, 0), FGL2DDrawObject::LEFT, FGL2DDrawObject::BOTTOM, 0); objects[9] = resetviewtext = new FreeTypeCommandText(this, RESETVIEW, 0, "Reset View", "myfont.ttf", 12, new FColor(1, 0, 0), new FVertex(1, .5, 0), FGL2DDrawObject::RIGHT, FGL2DDrawObject::VCENTER, 0); gamecontroller->NewGame(this->rows, this->cols); gamecontroller->StartGame(); GameStatusChanged(); } void FTetrisScene::GameStatusChanged(){ if(gamecontroller){ startgametext->SetDraw(gamecontroller->GetGameMade() && !gamecontroller->GetGameDone() && !gamecontroller->GetGameStarted()); newgametext->SetDraw(!gamecontroller->GetGameMade() || gamecontroller->GetGameDone()); mainfield->SetDraw(gamecontroller->GetGameMade()); pointstext->SetDraw(gamecontroller->GetGameMade()); prefield->SetDraw(gamecontroller->GetGameMade()); resetviewtext->SetDraw(gamecontroller->GetGameMade()); restartgametext->SetDraw(gamecontroller->GetGameMade()); pausegametext->SetDraw(gamecontroller->GetGameMade()&&!gamecontroller->GetGameDone()); pausegametext->SetText(gamecontroller->GetActive()?"Pause Game":"Continue Game"); } } void FTetrisScene::GamePointsChanged(int points){ if(gamecontroller){ stringstream ss; ss << gamecontroller->GetPoints(); string mystring = ss.str(); pointstext->SetText(mystring.c_str()); } } void FTetrisScene::Update(){ if(gamecontroller){ gamecontroller->Action(); } if(autorot){ if(this->mainfield){ if(autorotx) mainfield->SetXRot(mainfield->GetXRot() + .5); if(autoroty) mainfield->SetYRot(mainfield->GetYRot() + .5); if(autorotz) mainfield->SetZRot(mainfield->GetZRot() + .5); } } } void FTetrisScene::KeyStatusChanged(int key){ switch(key){ case VK_LEFT: gamecontroller->SetLeft(keys[key]); break; case VK_RIGHT: gamecontroller->SetRight(keys[key]); break; case VK_DOWN: gamecontroller->SetDown(keys[key]); break; case VK_UP: gamecontroller->SetRotate(keys[key]); break; case 0x50://p if(keys[key]){ gamecontroller->Pause(); keys[key] = false; } break; case 0x53: if(keys[key]){ Command(RESETVIEW, 0); } break; case VK_F1: if(gamecontroller->GetActive()) this->gamecontroller->Pause(); this->ui->GetGame()->Command(FGame::ABOUT, 0); if(gamecontroller->GetActive()) this->gamecontroller->Pause(); keys[key] = false; break; case 0x58://x if(keys[key]){ if(autorot) autorotx = !autorotx; else this->mainfield->SetXRot(mainfield->GetXRot() + 2); } break; case 0x59://y if(keys[key]){ if(autorot) autoroty = !autoroty; else this->mainfield->SetYRot(mainfield->GetYRot() + 2); } break; case 0x5A://z if(keys[key]){ if(autorot) autorotz = !autorotz; else this->mainfield->SetZRot(mainfield->GetZRot() + 2); } break; case 0x52://r if(keys[key]) this->autorot = !autorot; break; case 0x44://d if(keys[key]) mainfield->Set3D(!mainfield->Get3D()); } } void FTetrisScene::Command(int command, int extra){ switch(command){ case START: gamecontroller->StartGame(); break; case RESTART: gamecontroller->NewGame(rows, cols); gamecontroller->StartGame(); break; case NEW: gamecontroller->NewGame(rows, cols); break; case PAUSE: gamecontroller->Pause(); break; case RESETVIEW: if(mainfield){ mainfield->SetXRot(0); mainfield->SetYRot(0); mainfield->SetZRot(0); mainfield->Set3D(false); } break; default: FScene::Command(command, extra); break; } } void FTetrisScene::MouseAction(){ this->ProcessSelectedObjects(this->mousex, this->mousey, 10, 10, false); } void FTetrisScene::MouseLClick(){ this->ProcessSelectedObjects(this->mousex, this->mousey, 10, 10, true); } void FTetrisScene::PreBlockSetChanged(FTetrisBlockSet *blockset){ prefield->SetBlockSet(blockset); }
3524943c80a157c5f1693bf7c500e4ebb40d7536
3927eb7aaa3cfa45ffc57f0a7a6b00417a720fea
/URI/01095-sequencia_ij_1.cpp
49970606c808addb5c0bec3e1f00f5f979c436f6
[]
no_license
jbsilva/Programming_Challenges
c2e5ee12bf3d2f17ce9b907447cd2c27d6198d7f
889274951b1bbb048e8ea3a4843fac97ce6a95e3
refs/heads/main
2021-07-07T06:13:04.748780
2021-05-02T20:29:38
2021-05-02T20:29:38
49,593,340
2
2
null
null
null
null
UTF-8
C++
false
false
627
cpp
01095-sequencia_ij_1.cpp
// ============================================================================ // // Filename: 01095-sequencia_ij_1.cpp // // Description: URI 1095 - Sequencia IJ 1 // // Version: 1.0 // Created: 09/30/2012 01:32:06 AM // Revision: none // Compiler: g++ // // Author: Julio Batista Silva (351202), julio(at)juliobs.com // Company: UFSCar // // ============================================================================ #include <cstdio> int main() { int i, j; for (i = 1, j = 60; j >= 0; i += 3, j -= 5) printf("I=%d J=%d\n", i, j); return 0; }
4dc915667fe5223966a993ab89cca3add353adc2
7d5593b9bbaf6bb8eaacca88449d90c9c305c36e
/problems/882-reachable-nodes-in-subdivided-graph/882.hh
eb03b1945a22f7c55b0ca2ac867f66d26c794b94
[]
no_license
yottacto/leetcode
fc98052ed9d643be8a79116d28540596bcc7c26b
9a41e41c0982c1a313803d1d8288d086fbdbd5b6
refs/heads/master
2021-04-25T12:05:55.671066
2019-12-15T03:07:31
2019-12-15T03:07:31
111,814,868
2
0
null
null
null
null
UTF-8
C++
false
false
1,741
hh
882.hh
#pragma once #include <vector> #include <queue> auto constexpr maxn = 3007; auto constexpr inf = 1<<30; struct edge { int end; int cost; int id; }; auto operator<(edge const& lhs, edge const& rhs) { return lhs.cost > rhs.cost; } struct Solution { std::vector<std::vector<edge>> g; int reachableNodes(std::vector<std::vector<int>>& edges, int m, int n) { g.resize(n); for (int i = 0; i < (int)edges.size(); i++) { auto const& e = edges[i]; auto u = e[0]; auto v = e[1]; auto c = e[2]; g[u].emplace_back(edge{v, c + 1, i}); g[v].emplace_back(edge{u, c + 1, i}); } std::vector<int> dist(n, inf); dist[0] = 0; std::priority_queue<edge> pq; pq.emplace(edge{0, 0, 0}); while (!pq.empty()) { auto now = pq.top(); pq.pop(); auto u = now.end; auto d = now.cost; if (dist[u] < d) continue; for (auto const& e : g[u]) { auto v = e.end; auto c = e.cost; if (d + c < dist[v]) { dist[v] = d + c; pq.emplace(edge{v, dist[v], 0}); } } } std::vector<int> count(edges.size()); auto res = 0; for (auto i = 0; i < n; i++) { if (dist[i] > m) continue; res++; auto rm = m - dist[i]; for (auto const& e : g[i]) count[e.id] += std::min(rm, e.cost - 1); } for (auto i = 0u; i < edges.size(); i++) res += std::min(count[i], edges[i][2]); return res; } };
7cbd0bf8bbb3cb547a15ff7cea32757986de0fc8
22d4f7fac0abdb2b771f44886cb919033cfc19ea
/SDL_Game/Game.h
68e8ac8a4ed24d2b6264d619f51915da5b53bd56
[]
no_license
RSharma98/SDL_Game
7301961620bb8233ca2bd54f1ab78fa46b75c7ca
552eb8aae4feabe88cc210c9fb612df51c3b036a
refs/heads/master
2020-07-23T18:32:21.458450
2019-12-22T07:20:50
2019-12-22T07:20:50
207,668,247
0
0
null
null
null
null
UTF-8
C++
false
false
734
h
Game.h
#ifndef GAME_H #define GAME_H #include "SDL.h" #include "SDL_image.h" #include <iostream> #include "GameObject.h" #include "LavaObject.h" #include "TileObject.h" #include "Tilemap.h" #include "Level.h" #include "LevelManager.h" #include "SpriteRenderer.h" class Game { public: Game(); ~Game(); void Initialise(const char *title, int xPos, int yPos, int width, int height, bool fullscreen); void Update(); void HandleEvents(); void Render(); void Clean(); bool Running() { return isRunning; } private: bool isRunning = false; bool isMainMenu = true; SDL_Window *window; SDL_Renderer *renderer; Level* level; Tilemap* tilemap; LevelManager* levelManager; SpriteRenderer* mainMenuBackground; }; #endif // ! GAME_H
06c0988d451e7e85a11c8460d3bc7f6a5eff1e71
495c4f474d76edbd39079dbdcf896f0da74217ec
/Mgoonga/sdl_assets/ImGuiContext.cpp
0a4adda6ed03fed4e921175b04b6ac653bb25913
[]
no_license
mgoongaBabangida/engine
6ef76f4c8bca67832ec726eb51f0901759f3d78a
7f3e2c3c2845062812e247ad92e09061fbf8c99b
refs/heads/master
2023-08-25T02:43:32.221583
2023-07-01T15:17:20
2023-07-01T15:17:20
173,889,390
2
1
null
2019-05-19T07:09:57
2019-03-05T06:36:40
C++
UTF-8
C++
false
false
37,535
cpp
ImGuiContext.cpp
#include "stdafx.h" #include "ImGuiContext.h" #include <SDL/include/SDL.h> #include <glew-2.1.0/include/GL/glew.h> #include <SDL/include/SDL_opengl.h> #include "imgui/imgui.h" #include "imgui/imgui_impl_sdl.h" #include "imgui/imgui_impl_opengl3.h" #include "ImGuiFileBrowser.h" #include <algorithm> #include <functional> #include <iostream> #include <base/base.h> #include <base/Object.h> #include <math/Rigger.h> #include <opengl_assets/Texture.h> #include <glm/glm/gtc/quaternion.hpp> imgui_addons::ImGuiFileBrowser file_dialog; static bool block_events = false; //--------------------------------------------------------------------- struct UniformDisplayVisitor { void operator()(const int32_t& i) const { ImGui::SameLine(); ImGui::Text(std::to_string(i).c_str()); } void operator()(const size_t& i) const { ImGui::SameLine(); ImGui::Text(std::to_string(i).c_str()); } void operator()(const float& f) const { ImGui::SameLine(); ImGui::Text(std::to_string(f).c_str()); } void operator()(const bool& b) const { ImGui::SameLine(); ImGui::Text(std::to_string(b).c_str()); } void operator()(const glm::vec2& v) const { ImGui::SameLine(); ImGui::Text(std::to_string(v[0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(v[1]).c_str()); } void operator()(const glm::vec3& v) const { ImGui::SameLine(); ImGui::Text(std::to_string(v[0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(v[1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(v[2]).c_str()); } void operator()(const glm::vec4& v) const { ImGui::SameLine(); ImGui::Text(std::to_string(v[0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(v[1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(v[2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(v[3]).c_str()); } template<class T> void operator()(const T&) const { } }; eImGuiContext::eImGuiContext(SDL_GLContext* _context, SDL_Window* _window) :context(_context), window(_window) {} eImGuiContext& eImGuiContext::GetInstance(SDL_GLContext* context, SDL_Window* window) { static eImGuiContext instance(context, window); return instance; } void eImGuiContext::Init() { // GL 3.0 + GLSL 130 const char* glsl_version = "#version 330"; IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); (void)io; io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // Enable Multi-Viewport / Platform Windows io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange; // Disable SDL Cursor //io.ConfigViewportsNoAutoMerge = true; //io.ConfigViewportsNoTaskBarIcon = true; // Setup Dear ImGui style ImGui::StyleColorsDark(); //ImGui::StyleColorsClassic(); /*ImGuiStyle& style = ImGui::GetStyle(); if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) { style.WindowRounding = 0.0f; style.Colors[ImGuiCol_WindowBg].w = 1.0f; }*/ // Setup Platform/Renderer bindings ImGui_ImplSDL2_InitForOpenGL(window, context); ImGui_ImplOpenGL3_Init(glsl_version); } void eImGuiContext::NewFrame() { ImGui_ImplOpenGL3_NewFrame(); ImGui_ImplSDL2_NewFrame(); // pass window or not? ImGui::NewFrame(); } void eImGuiContext::Render() { ImGui::Render(); ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); ImGuiIO& io = ImGui::GetIO(); (void)io; if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) { SDL_Window* backup_current_window = SDL_GL_GetCurrentWindow(); SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext(); ImGui::UpdatePlatformWindows(); ImGui::RenderPlatformWindowsDefault(); SDL_GL_MakeCurrent(backup_current_window, backup_current_context); } } void eImGuiContext::CleanUp() { ImGui_ImplOpenGL3_Shutdown(); ImGui_ImplSDL2_Shutdown(); ImGui::DestroyContext(); } bool eImGuiContext::BlockEvents() { return block_events; } void eImGuiContext::SetBlockEvents(bool _b) { block_events = _b; } void eWindowImGuiDemo::Render() { ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); bool show_demo_window = true; bool show_another_window = false; // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). if (show_demo_window) ImGui::ShowDemoWindow(&show_demo_window); // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. { static float f = 0.0f; static int counter = 0; ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state ImGui::Checkbox("Another Window", &show_another_window); ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) counter++; ImGui::SameLine(); ImGui::Text("counter = %d", counter); ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); ImGui::End(); } // 3. Show another simple window. if (show_another_window) { ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) ImGui::Text("Hello from another window!"); if (ImGui::Button("Close Me")) show_another_window = false; ImGui::End(); } } eWindowImGui::eWindowImGui(const std::string & _name) :name(_name) { } void eWindowImGui::SetViewportOffset(float x_offset, float y_offset) { viewport_offset_x = x_offset; viewport_offset_y = y_offset; } void eWindowImGui::SetWindowOffset(float x_offset, float y_offset) { window_offset_x = x_offset; window_offset_y = y_offset; } void eWindowImGui::Render() { ImGui::Begin(name.c_str(), &visible); ImVec2 pos = ImGui::GetWindowPos(); window_pos_x = pos.x; window_pos_y = pos.y; ImVec2 size = ImGui::GetWindowSize(); window_size_x = size.x; window_size_y = size.y; //ImGui::SetNextWindowPos(ImVec2{ window_pos_x , window_pos_y + window_size_y }); ImGui::SetWindowSize({ 400, 300 }); for (auto& item : lines) { switch (std::get<1>(item)) { case SLIDER_FLOAT: ImGui::SliderFloat(std::get<0>(item).c_str(), static_cast<float*>(std::get<2>(item)), -10.0f, 10.0f); break; // -10 10 $todo case TEXT: ImGui::Text(std::get<0>(item).c_str()); break; case CHECKBOX: ImGui::Checkbox(std::get<0>(item).c_str(), static_cast<bool*>(std::get<2>(item))); break; case TEXTURE: { ImGui::Text(std::get<0>(item).c_str()); ImGui::Image((void*)(intptr_t)(std::get<2>(item)), ImVec2(240, 160), ImVec2(0, 1), ImVec2(1, 0)); } break; case SLIDER_FLOAT_3: { eThreeFloat* transfer_data = static_cast<eThreeFloat*>(std::get<2>(item)); ImGui::Text(std::get<0>(item).c_str()); ImGui::PushItemWidth(ImGui::GetWindowWidth()); ImGui::SliderFloat3(std::get<0>(item).c_str(), &transfer_data->data[0],-10, 10); //@todo } break; case SLIDER_FLOAT_3_CALLBACK: { eThreeFloatCallback* transfer_data = static_cast<eThreeFloatCallback*>(std::get<2>(item)); ImGui::Text(std::get<0>(item).c_str()); ImGui::PushItemWidth(ImGui::GetWindowWidth()); if (ImGui::SliderFloat3(std::get<0>(item).c_str(), &transfer_data->data[0], transfer_data->min, transfer_data->max)) transfer_data->callback(); } break; case TEXT_INT: { size_t* data = static_cast<size_t*>(std::get<2>(item)); std::string text = std::get<0>(item) + std::to_string(*data); ImGui::Text(text.c_str()); break; } break; case COMBO_BOX: { eVectorStringsCallback* transfer_data = static_cast<eVectorStringsCallback*>(std::get<2>(item)); std::vector<char*> cstrings; cstrings.reserve(transfer_data->data.size()); for (size_t i = 0; i < transfer_data->data.size(); ++i) cstrings.push_back(const_cast<char*>(transfer_data->data[i].c_str())); static int item_current = 0; if (!cstrings.empty()) { if (ImGui::Combo(std::get<0>(item).c_str(), &item_current, &cstrings[0], transfer_data->data.size())) transfer_data->callback(item_current); } } break; case TEXTURE_ARRAY: { std::vector<const Texture*>* transfer_data = static_cast<std::vector<const Texture*>*>(std::get<2>(item)); ImGui::Text(std::get<0>(item).c_str()); for (const Texture* t : *transfer_data) { ImGui::Image((void*)(intptr_t)(t->id), ImVec2(240, 160)/* ImVec2(t->mTextureWidth, t->mTextureHeight)*/, ImVec2(0, 1), ImVec2(1, 0)); } } break; case BUTTON: { if (ImGui::Button(std::get<0>(item).c_str())) { if(auto callback = callbacks.find(std::get<0>(item)); callback!= callbacks.end()) callback->second(); } } break; case OBJECT_REF_TRANSFORM: { shObject* p_object = static_cast<shObject*>(std::get<2>(item)); if (p_object && *p_object) { if (*p_object != m_current_object) { m_current_object = *p_object; m_combo_list.clear(); } ImGui::Text(m_current_object->Name().c_str()); static glm::vec3 g_translation, g_rotation, g_scale; ImGui::Text(""); g_translation[0] = m_current_object->GetTransform()->getTranslation()[0]; g_translation[1] = m_current_object->GetTransform()->getTranslation()[1]; g_translation[2] = m_current_object->GetTransform()->getTranslation()[2]; ImGui::PushItemWidth(ImGui::GetWindowWidth()); if (ImGui::SliderFloat3("Position", &g_translation[0], -10, 10)) { m_current_object->GetTransform()->setTranslation(g_translation); } ImGui::Text("Rotation"); //prob assign g_rotation only when changing the object glm::vec3 rot = g_rotation = glm::eulerAngles(m_current_object->GetTransform()->getRotation()); ImGui::PushItemWidth(ImGui::GetWindowWidth()); if (ImGui::SliderFloat3("", &g_rotation[0], -PI * 2, PI * 2, "%.2f")) { auto euler = glm::eulerAngles(m_current_object->GetTransform()->getRotation()); //std::cout << "euler " << euler.x << " " << euler.y<< " " << euler.z << std::endl; auto xRotation = glm::cross(glm::vec3(m_current_object->GetTransform()->getRotationUpVector()), glm::vec3(m_current_object->GetTransform()->getRotationVector())); float angleX = static_cast<float>(g_rotation[0]) - static_cast<float>(rot[0]); glm::quat rotX = glm::angleAxis(angleX, xRotation); auto yRotation = glm::vec3(m_current_object->GetTransform()->getRotationUpVector()); float angleY = static_cast<float>(g_rotation[1]) - static_cast<float>(rot[1]); glm::quat rotY = glm::angleAxis(angleY, yRotation); auto zRotation = glm::vec3(m_current_object->GetTransform()->getRotationVector()); float angleZ = static_cast<float>(g_rotation[2]) - static_cast<float>(rot[2]); glm::quat rotZ = glm::angleAxis(angleZ, zRotation); m_current_object->GetTransform()->setRotation(rotX * rotY * rotZ * m_current_object->GetTransform()->getRotation()); } ImGui::Text(""); g_scale[0] = m_current_object->GetTransform()->getScaleAsVector().x; g_scale[1] = m_current_object->GetTransform()->getScaleAsVector().y; g_scale[2] = m_current_object->GetTransform()->getScaleAsVector().z; ImGui::PushItemWidth(ImGui::GetWindowWidth()); if (ImGui::SliderFloat3("Scale", &g_scale[0], 0.0f, 5.0f)) { m_current_object->GetTransform()->setScale(g_scale); } std::string text = std::string("Number of vertices ") + std::to_string(m_current_object->GetModel()->GetVertexCount()); ImGui::Text(text.c_str()); text = std::string("Number of meshes ") + std::to_string(m_current_object->GetModel()->GetMeshCount()); ImGui::Text(text.c_str()); } } break; case OBJECT_REF_MATERIAL: { shObject* p_object = static_cast<shObject*>(std::get<2>(item)); if (p_object && *p_object) { shObject obj = *p_object; ImGui::Text(obj->Name().c_str()); //Meshes transfer to rigger later m_combo_list.clear(); for (size_t i = 0; i < obj->GetModel()->GetMeshCount(); ++i) { std::string name = obj->GetModel()->GetMeshes()[i]->Name(); for (int j = 0; j < name.size(); ++j) m_combo_list.push_back(name[j]); if (i != obj->GetModel()->GetMeshCount() - 1) m_combo_list.push_back('\0'); } static int mesh_current = 0; if (!m_combo_list.empty()) { if (ImGui::Combo("Object Meshes", &mesh_current, &m_combo_list[0])) { } } // Material Material material; if (obj->GetModel()->GetMeshes()[mesh_current]->HasMaterial()) material = *(obj->GetModel()->GetMeshes()[mesh_current]->GetMaterial()); else if (obj->GetModel()->HasMaterial()) material = *(obj->GetModel()->GetMaterial()); //@todo terrain has to have material /*else assert(false && "Neither mesh nor model have material!");*/ ImGui::Text("Albedo texture(Diffuse)"); ImGui::Image((void*)(intptr_t)(material.albedo_texture_id), ImVec2(240, 160), ImVec2(0, 1), ImVec2(1, 0)); ImGui::Text(std::to_string(material.albedo[0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(material.albedo[1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(material.albedo[2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(material.use_albedo).c_str()); ImGui::Text("Metalic texture"); ImGui::Image((void*)(intptr_t)(material.metalic_texture_id), ImVec2(240, 160), ImVec2(0, 1), ImVec2(1, 0)); ImGui::Text(std::to_string(material.metallic).c_str()); ImGui::Text(std::to_string(material.use_metalic).c_str()); ImGui::Text("AO"); ImGui::SameLine(); ImGui::Text(std::to_string(material.ao).c_str()); ImGui::Text("Normal texture"); ImGui::Image((void*)(intptr_t)(material.normal_texture_id), ImVec2(240, 160), ImVec2(0, 1), ImVec2(1, 0)); ImGui::Text(std::to_string(material.use_normal).c_str()); ImGui::Text("Roughness texture");//contra glossiness ImGui::Image((void*)(intptr_t)(material.roughness_texture_id), ImVec2(240, 160), ImVec2(0, 1), ImVec2(1, 0)); ImGui::Text(std::to_string(material.roughness).c_str()); ImGui::Text(std::to_string(material.use_roughness).c_str()); ImGui::Text("Emissive texture"); ImGui::Image((void*)(intptr_t)(material.emissive_texture_id), ImVec2(240, 160), ImVec2(0, 1), ImVec2(1, 0)); //@todo add displacement/ bump as separate slot m_combo_list.clear(); } } break; case OBJECT_REF_RIGGER: { static const char* current_mesh_item = NULL; static const char* current_animation_item = NULL; static const char* current_frame_item = NULL; static const char* current_bone_item = NULL; shObject* p_object = static_cast<shObject*>(std::get<2>(item)); if (p_object && *p_object) { if (*p_object != m_current_object) { m_current_object = *p_object; mesh_names.clear(); current_mesh_item = m_current_object->GetModel()->GetMeshes()[0]->Name().c_str(); for (size_t i = 0; i < m_current_object->GetModel()->GetMeshCount(); ++i) mesh_names.push_back(m_current_object->GetModel()->GetMeshes()[i]->Name() + " " + std::to_string(i)); animation_names.clear(); frame_names.clear(); bone_names.clear(); if (m_current_object->GetRigger()) { Rigger* rigger = dynamic_cast<Rigger*>(m_current_object->GetRigger()); animation_names = rigger->GetAnimationNames(); if (!animation_names.empty()) { current_animation_item = animation_names[0].c_str(); rigger->SetCurrentAnimation(animation_names[0]); } for (size_t i = 0; i < rigger->GetCurrentAnimation()->GetNumFrames(); ++i) frame_names.push_back(std::to_string(i)); current_frame_item = frame_names[0].c_str(); bone_names = rigger->GetBoneNames(); current_bone_item = bone_names[0].c_str(); } } if (!p_object) return; // Name shObject obj = *p_object; ImGui::Text(obj->Name().c_str()); //Meshes if (ImGui::BeginCombo("Object Meshes", current_mesh_item)) // The second parameter is the label previewed before opening the combo. { for (int n = 0; n < mesh_names.size(); n++) { bool is_selected = (current_mesh_item == mesh_names[n].c_str()); // You can store your selection however you want, outside or inside your objects if (ImGui::Selectable(mesh_names[n].c_str(), is_selected)) current_mesh_item = mesh_names[n].c_str(); if (is_selected) ImGui::SetItemDefaultFocus(); // You may set the initial focus when opening the combo (scrolling + for keyboard navigation support) } ImGui::EndCombo(); } //Rigger if (obj->GetRigger()) { Rigger* rigger = dynamic_cast<Rigger*>(m_current_object->GetRigger()); std::string text = std::string("Number of animations ") + std::to_string(obj->GetRigger()->GetAnimationCount()); ImGui::Text(text.c_str()); //Animations if (ImGui::BeginCombo("Object Animations", current_animation_item)) // The second parameter is the label previewed before opening the combo. { for (int n = 0; n < animation_names.size(); n++) { bool is_selected = (current_animation_item == animation_names[n].c_str()); // You can store your selection however you want, outside or inside your objects if (ImGui::Selectable(animation_names[n].c_str(), is_selected)) { frame_names.clear(); current_animation_item = animation_names[n].c_str(); rigger->SetCurrentAnimation(animation_names[n]); for (size_t i = 0; i < rigger->GetCurrentAnimation()->GetNumFrames(); ++i) frame_names.push_back(std::to_string(i)); current_frame_item = frame_names[0].c_str(); } if (is_selected) { ImGui::SetItemDefaultFocus(); // You may set the initial focus when opening the combo (scrolling + for keyboard navigation support) } } ImGui::EndCombo(); } //Frames if (auto* cur_anim = rigger->GetCurrentAnimation(); cur_anim != nullptr) { text = std::string("Number of frames ") + std::to_string(rigger->GetCurrentAnimation()->GetNumFrames()); ImGui::Text(text.c_str()); //frames combo if (ImGui::BeginCombo("Animation frames", current_frame_item)) // The second parameter is the label previewed before opening the combo. { for (int n = 0; n < frame_names.size(); n++) { bool is_selected = (current_frame_item == frame_names[n].c_str()); // You can store your selection however you want, outside or inside your objects if (ImGui::Selectable(frame_names[n].c_str(), is_selected)) current_frame_item = frame_names[n].c_str(); if (is_selected) ImGui::SetItemDefaultFocus(); // You may set the initial focus when opening the combo (scrolling + for keyboard navigation support) } ImGui::EndCombo(); } static bool is_frame_freez = false; ImGui::Checkbox("FreezeFrame frame", &is_frame_freez); if (is_frame_freez) rigger->GetCurrentAnimation()->FreezeFrame(std::stoi(current_frame_item)); else rigger->GetCurrentAnimation()->FreezeFrame(-1); } //Bones text = std::string("Number of bones ") + std::to_string(obj->GetRigger()->GetBoneCount()); ImGui::Text(text.c_str()); text = std::string("Root Bone: ") + rigger->GetNameRootBone(); ImGui::Text(text.c_str()); static bool is_show_active_bone = false; ImGui::Checkbox("Show active bone", &is_show_active_bone); static glm::mat4 boneMatrix; static int bone_current = 0; //bones combo if (ImGui::BeginCombo("Current bone", current_bone_item)) // The second parameter is the label previewed before opening the combo. { for (int n = 0; n < bone_names.size(); n++) { bool is_selected = (current_bone_item == bone_names[n].c_str()); // You can store your selection however you want, outside or inside your objects if (ImGui::Selectable(bone_names[n].c_str(), is_selected)) { current_bone_item = bone_names[n].c_str(); bone_current = n; } if (is_selected) { ImGui::SetItemDefaultFocus(); // You may set the initial focus when opening the combo (scrolling + for keyboard navigation support) } } ImGui::EndCombo(); } boneMatrix = rigger->GetCurrentMatrixForBone(current_bone_item); if (is_show_active_bone) rigger->SetActiveBoneIndex(bone_current); else rigger->SetActiveBoneIndex(MAX_BONES); m_combo_list.clear(); ImGui::Text("Bone animated transform Matrix"); ImGui::Text(std::to_string(boneMatrix[0][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[0][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[0][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[0][3]).c_str()); ImGui::Text(std::to_string(boneMatrix[1][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[1][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[1][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[1][3]).c_str()); ImGui::Text(std::to_string(boneMatrix[2][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[2][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[2][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[2][3]).c_str()); ImGui::Text(std::to_string(boneMatrix[3][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[3][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[3][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(boneMatrix[3][3]).c_str()); static glm::mat4 bindMatrix = rigger->GetBindMatrixForBone(current_bone_item); ImGui::Text("Bone bind transform Matrix"); ImGui::Text(std::to_string(bindMatrix[0][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[0][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[0][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[0][3]).c_str()); ImGui::Text(std::to_string(bindMatrix[1][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[1][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[1][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[1][3]).c_str()); ImGui::Text(std::to_string(bindMatrix[2][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[2][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[2][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[2][3]).c_str()); ImGui::Text(std::to_string(bindMatrix[3][0]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[3][1]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[3][2]).c_str()); ImGui::SameLine(); ImGui::Text(std::to_string(bindMatrix[3][3]).c_str()); //Play animation if (ImGui::Button("Play current animations ")) { if (obj->GetRigger()->GetAnimationCount() != 0) obj->GetRigger()->Apply(current_animation_item, false); } if (ImGui::Button("Play once current animations ")) { if (obj->GetRigger()->GetAnimationCount() != 0) obj->GetRigger()->Apply(current_animation_item, true); } if (ImGui::Button("Stop current animations ")) { obj->GetRigger()->Stop(); } } } } break; case OBJECT_LIST: { IGame* p_game = static_cast<IGame*>(std::get<2>(item)); auto objects = p_game->GetObjects(); for (auto& obj : objects) { bool is_visible = obj->IsVisible(); if(ImGui::Checkbox(obj->Name().c_str(), &is_visible)) { obj->SetVisible(is_visible); } } } break; case SHADER: { const std::vector<ShaderInfo>* infos = static_cast<const std::vector<ShaderInfo>*>(std::get<2>(item)); m_combo_list.clear(); for (size_t i = 0; i < infos->size(); ++i) { std::string name = (*infos)[i].name; for (int j = 0; j < name.size(); ++j) m_combo_list.push_back(name[j]); if (i != infos->size() - 1) m_combo_list.push_back('\0'); } static int shader_current = 0; if (!m_combo_list.empty()) { if (ImGui::Combo("Shaders", &shader_current, &m_combo_list[0])) { } //if (ImGui::Button("Update shaders")) //{ // shader_current = 0; // if (auto callback = callbacks.find("Update shaders"); callback != callbacks.end()) // callback->second(); //} for (const auto& uniform : (*infos)[shader_current].uniforms) { ImGui::Text(uniform.name.c_str()); std::visit(UniformDisplayVisitor(), uniform.data); } } } break; case CONSOLE: { std::string result; result.resize(150, '\0'); if (ImGui::InputText(std::get<0>(item).c_str(), &result[0], 100, ImGuiInputTextFlags_EnterReturnsTrue)) { console_callback = *(reinterpret_cast<std::function<void(const std::string&)>*>(std::get<2>(item))); console_callback(result); } } break; case PARTICLE_SYSTEM: { std::unique_ptr<IParticleSystem>* p_psystem = static_cast<std::unique_ptr<IParticleSystem>*>(std::get<2>(item)); ImGui::SliderFloat("Cone Angle", &p_psystem->get()->ConeAngle(), 0.0f, 2.0f); ImGui::SliderFloat("Speed", &p_psystem->get()->Speed(), 0.0f, 1.0f); ImGui::SliderFloat("Base Radius", &p_psystem->get()->BaseRadius(), 0.0f, 1.0f); float scale = p_psystem->get()->Scale().x; if(ImGui::SliderFloat("Size", &scale, 0.0f, 1.0f)) { p_psystem->get()->Scale() = glm::vec3{ scale ,scale ,scale }; } ImGui::SliderFloat("Life Length", &p_psystem->get()->LifeLength(), 1.0f, 100.0f); ImGui::SliderInt("Particles Per Second", &p_psystem->get()->ParticlesPerSecond(), 1, 100); ImGui::SliderFloat("Gravity", &p_psystem->get()->Gravity(), 0.0f, 10.0f); ImGui::Checkbox("Loop", & p_psystem->get()->Loop()); } break; } } ImGui::End(); } //----------------------------------------------------------------------- void eWindowImGui::Add(TypeImGui _type, const std::string & _name, void* _data) { if (_type == BUTTON) { auto callback = reinterpret_cast<std::function<void()>*>(_data); callbacks.insert({_name, *callback }); } auto it = std::find_if(lines.begin(), lines.end(), [&_name](const eItem& _item) { return std::get<0>(_item) == _name; }); if (it == lines.end()) lines.push_back(eItem(_name, _type, _data)); else std::get<2>(*it) = _data; } //--------------------------------------------------------------------- bool eWindowImGui::OnMousePress(int32_t x, int32_t y, bool left) { float global_pos_x = x + viewport_offset_x + window_offset_x; float global_pos_y = y + viewport_offset_y + window_offset_y; bool is_pressed = global_pos_x > window_pos_x && global_pos_y > window_pos_y && global_pos_x < (window_pos_x + window_size_x) && global_pos_y < (window_pos_y + window_size_y); if (is_pressed) return true; else return false; } //--------------------------------------------------------------------- bool eWindowImGui::OnMouseMove(int32_t _x, int32_t _y) { cursor_x = _x; cursor_y = _y; if (IsHovered()) return true; else return false; } //----------------------------------------------------------------- bool eWindowImGui::OnMouseWheel(int32_t _x, int32_t _y) { if (IsHovered()) return true; else return false; } //----------------------------------------------------------------- bool eWindowImGui::IsHovered() { float global_pos_x = cursor_x + viewport_offset_x + window_offset_x; float global_pos_y = cursor_y + viewport_offset_y + window_offset_y; return global_pos_x > window_pos_x && global_pos_y > window_pos_y && global_pos_x < (window_pos_x + window_size_x) && global_pos_y < (window_pos_y + window_size_y); } //----------------------------------------------------------------- eMainImGuiWindow::eMainImGuiWindow() : eWindowImGui("main_window") { } //----------------------------------------------------------------- void eMainImGuiWindow::Render() { bool open = false, save = false, open_file = false, open_scene = false, save_scene = false; ImGui::BeginMainMenuBar(); ImVec2 pos = ImGui::GetWindowPos(); window_pos_x = pos.x; window_pos_y = pos.y; ImVec2 size = ImGui::GetWindowSize(); window_size_x = size.x; window_size_y = size.y; if (ImGui::BeginMenu("File")) { if (ImGui::MenuItem("Open", NULL)) open = true; if (ImGui::MenuItem("Save", NULL)) save = true; for (auto& item : lines) { switch (std::get<1>(item)) { case MENU: { if (ImGui::MenuItem(std::get<0>(item).c_str())) { auto callback = reinterpret_cast<std::function<void()>*>(std::get<2>(item)); (*callback)(); } } break; case MENU_OPEN: { if (ImGui::MenuItem(std::get<0>(item).c_str(), NULL)) { open_file = true; open_file_menu_name = std::get<0>(item); open_file_callback = *(reinterpret_cast<std::function<void(const std::string&)>*>(std::get<2>(item))); } } break; case MENU_OPEN_SCENE: { if (ImGui::MenuItem(std::get<0>(item).c_str(), NULL)) { open_scene = true; open_scene_menu_name = std::get<0>(item); open_scene_callback = *(reinterpret_cast<std::function<void(const std::string&)>*>(std::get<2>(item))); } } break; case MENU_SAVE_SCENE: { if (ImGui::MenuItem(std::get<0>(item).c_str(), NULL)) { save_scene = true; save_scene_menu_name = std::get<0>(item); save_scene_callback = *(reinterpret_cast<std::function<void(const std::string&)>*>(std::get<2>(item))); } } break; } } ImGui::EndMenu(); } ImGui::EndMainMenuBar(); if (open) ImGui::OpenPopup("Open File"); if (save) ImGui::OpenPopup("Save File"); if (open_file) { ImGui::OpenPopup(open_file_menu_name.c_str()); eImGuiContext::SetBlockEvents(true); } if (open_scene) { ImGui::OpenPopup(open_scene_menu_name.c_str()); eImGuiContext::SetBlockEvents(true); } if (save_scene) { ImGui::OpenPopup(save_scene_menu_name.c_str()); eImGuiContext::SetBlockEvents(true); } /* Optional third parameter. Support opening only compressed rar/zip files. * Opening any other file will show error, return false and won't close the dialog. */ if (file_dialog.showFileDialog("Open File", imgui_addons::ImGuiFileBrowser::DialogMode::OPEN, ImVec2(700, 310), ".rar,.zip,.7z,.obj")) { std::cout << file_dialog.selected_fn << std::endl; // The name of the selected file or directory in case of Select Directory dialog mode std::cout << file_dialog.selected_path << std::endl; // The absolute path to the selected file } if (file_dialog.showFileDialog("Save File", imgui_addons::ImGuiFileBrowser::DialogMode::SAVE, ImVec2(700, 310), ".png,.jpg,.bmp")) { std::cout << file_dialog.selected_fn << std::endl; // The name of the selected file or directory in case of Select Directory dialog mode std::cout << file_dialog.selected_path << std::endl; // The absolute path to the selected file std::cout << file_dialog.ext << std::endl; // Access ext separately (For SAVE mode) //Do writing of files based on extension here } if (file_dialog.showFileDialog(open_file_menu_name.c_str(), imgui_addons::ImGuiFileBrowser::DialogMode::OPEN, ImVec2(700, 200), ".obj")) { open_file_callback(file_dialog.selected_path); eImGuiContext::SetBlockEvents(false); } if (file_dialog.showFileDialog(open_scene_menu_name.c_str(), imgui_addons::ImGuiFileBrowser::DialogMode::OPEN, ImVec2(700, 200), ".mgoongaScene")) { open_scene_callback(file_dialog.selected_path); eImGuiContext::SetBlockEvents(false); } if (file_dialog.showFileDialog(save_scene_menu_name.c_str(), imgui_addons::ImGuiFileBrowser::DialogMode::SAVE, ImVec2(700, 200), ".mgoongaScene")) { save_scene_callback(file_dialog.selected_path); eImGuiContext::SetBlockEvents(false); } } //------------------------------------------------------------------- void eMainImGuiWindow::Add(TypeImGui _type, const std::string& _name, void* _data) { auto it = std::find_if(lines.begin(), lines.end(), [&_name](const eItem& _item) { return std::get<0>(_item) == _name; }); if (it == lines.end()) lines.push_back(eItem(_name, _type, _data)); else std::get<2>(*it) = _data; }
eecd4443e93099f128966d9f3494a12cd15349a0
08c49ab21b5a7b79487fc55f9f5425f0b09dc4f9
/DSAA2/PairingHeap.cpp
b595bdc776ce1621d29e36c8b786f11cc6a558e3
[ "MIT" ]
permissive
crosslife/DSAA
f03a46781bd5a496944e00e92a31ed1f2f56623e
03472db6e61582187192073b6ea4649b6195222b
refs/heads/master
2021-03-12T20:45:18.195236
2013-11-06T08:10:49
2013-11-06T08:10:49
14,159,406
5
1
null
null
null
null
UTF-8
C++
false
false
9,483
cpp
PairingHeap.cpp
#include "PairingHeap.h" #include "dsexceptions.h" /** * Construct the pairing heap. */ template <class Comparable> PairingHeap<Comparable>::PairingHeap( ) { root = NULL; } /** * Copy constructor */ template <class Comparable> PairingHeap<Comparable>::PairingHeap( const PairingHeap<Comparable> & rhs ) { root = NULL; *this = rhs; } /** * Destroy the leftist heap. */ template <class Comparable> PairingHeap<Comparable>::~PairingHeap( ) { makeEmpty( ); } /** * Insert item x into the priority queue, maintaining heap order. * Return a pointer to the node containing the new item. */ template <class Comparable> PairNode<Comparable> * PairingHeap<Comparable>::insert( const Comparable & x ) { PairNode<Comparable> *newNode = new PairNode<Comparable>( x ); if( root == NULL ) root = newNode; else compareAndLink( root, newNode ); return newNode; } /** * Find the smallest item in the priority queue. * Return the smallest item, or throw Underflow if empty. */ template <class Comparable> const Comparable & PairingHeap<Comparable>::findMin( ) const { if( isEmpty( ) ) throw Underflow( ); return root->element; } /** * Remove the smallest item from the priority queue. * Throws Underflow if empty. */ template <class Comparable> void PairingHeap<Comparable>::deleteMin( ) { if( isEmpty( ) ) throw Underflow( ); PairNode<Comparable> *oldRoot = root; if( root->leftChild == NULL ) root = NULL; else root = combineSiblings( root->leftChild ); delete oldRoot; } /** * Remove the smallest item from the priority queue. * Pass back the smallest item, or throw Underflow if empty. */ template <class Comparable> void PairingHeap<Comparable>::deleteMin( Comparable & minItem ) { minItem = findMin( ); deleteMin( ); } /** * Test if the priority queue is logically empty. * Returns true if empty, false otherwise. */ template <class Comparable> bool PairingHeap<Comparable>::isEmpty( ) const { return root == NULL; } /** * Test if the priority queue is logically full. * Returns false in this implementation. */ template <class Comparable> bool PairingHeap<Comparable>::isFull( ) const { return false; } /** * Make the priority queue logically empty. */ template <class Comparable> void PairingHeap<Comparable>::makeEmpty( ) { reclaimMemory( root ); root = NULL; } /** * Deep copy. */ template <class Comparable> const PairingHeap<Comparable> & PairingHeap<Comparable>::operator=( const PairingHeap<Comparable> & rhs ) { if( this != &rhs ) { makeEmpty( ); root = clone( rhs.root ); } return *this; } /** * Internal method to make the tree empty. * WARNING: This is prone to running out of stack space. */ template <class Comparable> void PairingHeap<Comparable>::reclaimMemory( PairNode<Comparable> * t ) const { if( t != NULL ) { reclaimMemory( t->leftChild ); reclaimMemory( t->nextSibling ); delete t; } } /** * Change the value of the item stored in the pairing heap. * Does nothing if newVal is larger than currently stored value. * p points to a node returned by insert. * newVal is the new value, which must be smaller * than the currently stored value. */ template <class Comparable> void PairingHeap<Comparable>::decreaseKey( PairNode<Comparable> *p, const Comparable & newVal ) { if( p->element < newVal ) return; // newVal cannot be bigger p->element = newVal; if( p != root ) { if( p->nextSibling != NULL ) p->nextSibling->prev = p->prev; if( p->prev->leftChild == p ) p->prev->leftChild = p->nextSibling; else p->prev->nextSibling = p->nextSibling; p->nextSibling = NULL; compareAndLink( root, p ); } } /** * Internal method that is the basic operation to maintain order. * Links first and second together to satisfy heap order. * first is root of tree 1, which may not be NULL. * first->nextSibling MUST be NULL on entry. * second is root of tree 2, which may be NULL. * first becomes the result of the tree merge. */ template <class Comparable> void PairingHeap<Comparable>:: compareAndLink( PairNode<Comparable> * & first, PairNode<Comparable> *second ) const { if( second == NULL ) return; if( second->element < first->element ) { // Attach first as leftmost child of second second->prev = first->prev; first->prev = second; first->nextSibling = second->leftChild; if( first->nextSibling != NULL ) first->nextSibling->prev = first; second->leftChild = first; first = second; } else { // Attach second as leftmost child of first second->prev = first; first->nextSibling = second->nextSibling; if( first->nextSibling != NULL ) first->nextSibling->prev = first; second->nextSibling = first->leftChild; if( second->nextSibling != NULL ) second->nextSibling->prev = second; first->leftChild = second; } } /** * Internal method that implements two-pass merging. * firstSibling the root of the conglomerate; * assumed not NULL. */ template <class Comparable> PairNode<Comparable> * PairingHeap<Comparable>:: combineSiblings( PairNode<Comparable> *firstSibling ) const { if( firstSibling->nextSibling == NULL ) return firstSibling; // Allocate the array static vector<PairNode<Comparable> *> treeArray( 5 ); // Store the subtrees in an array int numSiblings = 0; for( ; firstSibling != NULL; numSiblings++ ) { if( numSiblings == treeArray.size( ) ) treeArray.resize( numSiblings * 2 ); treeArray[ numSiblings ] = firstSibling; firstSibling->prev->nextSibling = NULL; // break links firstSibling = firstSibling->nextSibling; } if( numSiblings == treeArray.size( ) ) treeArray.resize( numSiblings + 1 ); treeArray[ numSiblings ] = NULL; // Combine subtrees two at a time, going left to right int i = 0; for( ; i + 1 < numSiblings; i += 2 ) compareAndLink( treeArray[ i ], treeArray[ i + 1 ] ); int j = i - 2; // j has the result of last compareAndLink. // If an odd number of trees, get the last one. if( j == numSiblings - 3 ) compareAndLink( treeArray[ j ], treeArray[ j + 2 ] ); // Now go right to left, merging last tree with // next to last. The result becomes the new last. for( ; j >= 2; j -= 2 ) compareAndLink( treeArray[ j - 2 ], treeArray[ j ] ); return treeArray[ 0 ]; } /** * Internal method to clone subtree. * WARNING: This is prone to running out of stack space. */ template <class Comparable> PairNode<Comparable> * PairingHeap<Comparable>::clone( PairNode<Comparable> * t ) const { if( t == NULL ) return NULL; else { PairNode<Comparable> *p = new PairNode<Comparable>( t->element ); if( ( p->leftChild = clone( t->leftChild ) ) != NULL ) p->leftChild->prev = p; if( ( p->nextSibling = clone( t->nextSibling ) ) != NULL ) p->nextSibling->prev = p; return p; } }
df74080ee4373da7d4e00cf2ab91bdb947985d24
d7b9fc7f5b7102c2e045256ceea8a31874ff5f0c
/accessibility/reader/q.cpp
9ab21160579e20e6498084776bc608dec5fa379e
[]
no_license
kaiyasa/Miner-s-Play
aa04ef302e3549b2d63696d30102c934ca6d270a
79a7be8af52eb5db50b34c60bd102d2f1e88e640
refs/heads/master
2021-01-17T08:29:22.428537
2016-07-15T19:09:03
2016-07-15T19:09:03
3,799,819
0
0
null
null
null
null
UTF-8
C++
false
false
2,765
cpp
q.cpp
#include <ncurses.h> #include "application.h" #include "io.h" #include "misc.h" using namespace std; vector<KeyAction> setup() { vector<KeyAction> result; result.push_back( {KEY_UP, [](Context &context) { moveUp(context.view); return 1; }}); result.push_back( {KEY_DOWN, [](Context &context) { moveDown(context.view); return 1; }}); result.push_back( {KEY_RESIZE, [](Context &context) { int rows, cols; getmaxyx(stdscr, rows, cols); context.view.rows = rows - 1; context.status.y = context.view.rows; context.view.cols = context.status.cols = cols; if (context.view.pos >= context.view.rows) context.view.pos = context.view.rows - 1; display(context.view); return 1; }}); result.push_back( {KEY_RIGHT, [](Context &context) { string text; if (context.view.xpos >= context.view.currentLine().size() - 1) text = string("end"); else { Description::Marker &mark = context.speak.text[context.view.xpos]; context.view.xpos += mark.size; text = mark.utter; } context.speech.say(text); return 0; }}); result.push_back( {KEY_LEFT, [](Context &context) { string text; if (context.view.xpos == 0) text = string("start"); else { int prev = max(0, min(context.view.xpos - 1, context.view.currentLine().size() - 2)); context.view.xpos = prev; text = char2str(context.view.currentLine()[prev]); } context.speech.say(text); return 0; }}); result.push_back( {CNTL_KEY_RIGHT, [](Context &context) { context.speech.say("stub"); return 0; }}); result.push_back( {' ', [](Context &context) { if (context.view.location() < context.view.buffer.size() - context.view.rows) { context.view.top += context.view.rows - 1; if (context.view.location() >= context.view.buffer.size()) context.view.pos = context.view.buffer.size() - 1 - context.view.top; display(context.view); } else { context.speech.say("no more text"); return 0; } return 1; }}); result.push_back( {'q', [](Context &context) { return 2; }}); return result; } int main(int argc, char *argv[]) { Context context; Application app(context, setup()); auto actions = setup(); vector<string> lines; if (argc < 2) { lines = text(stdin); freopen("/dev/tty", "r", stdin); } else lines = text(read(argv[1])); app.run(context, lines); return EXIT_SUCCESS; }
a832832072f63aa766fb5d671ffa67cc19ad1195
61e06d54f7b90797a2be0fb6f8c5ede2006ee5c1
/Brave-Pirate/Delay.h
4d7ffcd5db9a45702bd76d3be05a138f4c7bae2d
[]
no_license
Politechniczne-Caleczki/BravePirate2
f345062884de23ac0e0b6d9c10749d7653410419
3a1eb2c1207ab475464a32918f1bba56a8d2591f
refs/heads/master
2021-01-02T22:51:47.556801
2015-06-16T13:22:17
2015-06-16T13:22:17
20,548,909
1
0
null
null
null
null
UTF-8
C++
false
false
896
h
Delay.h
#ifndef Delay_h #define Delay_h #pragma once #include "Time.h" #include <iostream> class Delay { private: float delayTime, startTime; bool isredy; public: Delay(const float interval); ~Delay(void); void setDelay(const float interval); const float getDelay()const; void update(void); bool idRedy(void)const; void Start(void); friend std::ostream & operator<< (std::ostream &, const Delay &); friend std::istream & operator>> (std::istream &, Delay &); }; inline bool Delay::idRedy(void)const { return isredy; } inline void Delay::Start(void) { isredy = false; startTime = (float)Time::gameTime(); } inline void Delay::setDelay(const float interval) { this->delayTime = interval; } inline const float Delay::getDelay()const { return delayTime; } inline void Delay::update(void) { if(!isredy) if(startTime+delayTime < (float)Time::gameTime()) isredy = true; } #endif
1c63bc90e9d8af8302e583b71555182d20e584fd
8fa4dfbf3da618422376fa8ebe9627e0052da22f
/CharmDalitzFit/RooIsobar.cc
8b68322892cb205680e67ae8adca500c0dcb8a95
[]
no_license
sandrofonseca/UserCode-3
8481c6a77af6c7048b677cd97d6f949ba4ed618c
c3199f270bf40a14da20651088e021d1f2215bb2
refs/heads/master
2022-01-09T14:57:08.149677
2019-05-13T09:38:57
2019-05-13T09:38:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
26,041
cc
RooIsobar.cc
/***************************************************************************** * Project: BaBar detector at the SLAC PEP-II B-factory * Package: CharmDalitzFit * File: $Id: RooIsobar.cc,v 1.37 2008/06/10 17:08:25 pellicci Exp $ * Authors: * Mario Pelliccioni, pellicci@slac.stanford.edu *****************************************************************************/ // -- CLASS DESCRIPTION -- // RooIsobar represents a general dalitz plot class. // it contains member functions to load all the D-decay // dalitz dynamics. Declare the amplitude and phase of // the resonance etc. //Note: The DPManger class consturct the pdf for D0->K- pi+ pi0 //Here I specific the phase convention: //m12 -> K- pi+ A(K-,pi+,pi0) //m13 -> K- pi0 using namespace::std; #include <iostream> #include <fstream> #include <math.h> #include "CharmDalitzFit/RooIsobar.hh" #include "EvtGenBase/EvtPropBreitWignerRel.hh" #include "EvtGenBase/EvtBlattWeisskopf.hh" ClassImp(RooIsobar); // Constructor RooIsobar::RooIsobar(const Int_t D0flav, const Int_t isWS, EvtDalitzPlot *dalitzSpace, const string dirname) { _isWS = isWS; _D0flav = D0flav; _pi = acos(-1.0); _dalitzSpace = dalitzSpace; ndiv_eff = 40; assert(_isWS == 0 || _isWS == 1); assert(_D0flav == -1 || _D0flav == 1); name = dirname; cout << Class_Name() << ": flags for the amplitude -> D0flav = " << _D0flav << " isWS = " << _isWS << endl; //initialize the resonance parameters in the constructor //initialize the resonance parameters in the constructor initResonance(); getNormvalues(); readefficiency(); mA = _dalitzSpace->mA(); mB = _dalitzSpace->mB(); mC = _dalitzSpace->mC(); } void RooIsobar::getNormvalues() { //read the integral value from the cache file. //In this way we don't need to compute the normalization everytime during MIGRAD char int_name[50]; getFileName(int_name); ifstream f; f.open(int_name); if (!f){ cout << "Error opening file " << endl; assert(0); } Double_t re = 0., im = 0.; //Read in the cache file and store back to array for(Int_t j=1;j<=nRes;j++) { for(Int_t k=1;k<=nRes;k++){ f >> re >> im; normarray[j][k] = new EvtComplex(re,im); } } } //Return the normalization Double_t RooIsobar::getNormalization() const { Double_t norm = 0.; //Read the integral values of BW_j*conj(BW_k) EvtComplex coeff_j(0.,0.), coeff_k(0.,0.); for(Int_t j=1;j<=nRes;j++){ for(Int_t k=1;k<=nRes;k++){ coeff_j = EvtComplex(_ampRes[j]->getVal()*cos(_phaseRes[j]->getVal()*_pi/180.0),_ampRes[j]->getVal()*sin(_phaseRes[j]->getVal()*_pi/180.0)); coeff_k = EvtComplex(_ampRes[k]->getVal()*cos(_phaseRes[k]->getVal()*_pi/180.0),_ampRes[k]->getVal()*sin(_phaseRes[k]->getVal()*_pi/180.0)); norm += real(coeff_j*conj(coeff_k)*(*normarray[j][k])); } } return norm; } void RooIsobar::calNorm() { //Calculate the normalization value of the pdf cout << "RooIsobar::calNorm() Now perform GRID integration to obtain those intergrals and dump into a cache file" << endl; const Int_t _nBins = 700; cout << "We will do the GRID integral using bin size: " << _nBins << endl; //re-set the normarray for(Int_t j=1;j<=nRes;j++){ for(Int_t k=1;k<=nRes;k++){ *normarray[j][k] = EvtComplex(0.,0.); } } //Define the area const Double_t xmin = _dalitzSpace->qAbsMin(EvtCyclic3::AB)+1e-6; const Double_t ymin = _dalitzSpace->qAbsMin(EvtCyclic3::AC)+1e-6; const Double_t xmax = _dalitzSpace->qAbsMax(EvtCyclic3::AB)-1e-6; const Double_t ymax = _dalitzSpace->qAbsMax(EvtCyclic3::AC)-1e-6; const Double_t dhx = (xmax - xmin)/_nBins; const Double_t dhy = (ymax - ymin)/_nBins; cout << "////////////////////////////" << endl; cout << "Integration limits:" << endl; cout << "m12 -> " << xmin << " " << xmax << endl; cout << "m13 -> " << ymin << " " << ymax << endl; cout << "////////////////////////////" << endl; //Now scan over the dalitz plot for (Int_t dx=0;dx<_nBins;dx++) { const Double_t m12gen = xmin + dx*dhx + dhx/2.0; for (Int_t dy=0;dy<_nBins;dy++) { const Double_t m13gen = ymin + dy*dhy + dhy/2.0; const Double_t m23gen = getm23(m12gen,m13gen); EvtDalitzPoint _dalitzPoint(mA,mB,mC,m12gen,m23gen,m13gen); if(!_dalitzPoint.isValid()) continue; for(Int_t j=1;j<=nRes;j++) { for(Int_t k=1;k<=nRes;k++){ //Get the Breit-Wigner terms const EvtComplex BW_j = ResAmp(&_dalitzPoint,j); const EvtComplex BW_k = ResAmp(&_dalitzPoint,k); //Get the spin terms const EvtComplex integral = BW_j*conj(BW_k)/*abs2(efficiency(&_dalitzPoint))*/; //do the sum *normarray[j][k] += integral; } } } //end the for loop } //end the for loop //******************************************************************************** //write out the integral to a file char int_name[50]; getFileName(int_name); ofstream ofs(int_name); if (ofs.fail()){ cout << "RooDPManger::calNorm(): error opening file " << endl; assert(0); } for(Int_t j=1;j<=nRes;j++) { for(Int_t k=1;k<=nRes;k++){ ofs << real(*normarray[j][k])*dhx*dhy << " " << imag(*normarray[j][k])*dhx*dhy << endl; } } //********************************************************************************** getNormvalues(); } inline void RooIsobar::getFileName(char int_name[50]) const { string filename; if(!_isWS){ if(_D0flav==-1) filename = name + "RooIntegralD0_RS.dat"; else filename = name + "RooIntegralD0bar_RS.dat"; } else{ if(_D0flav==-1) filename = name + "RooIntegralD0bar_RS.dat"; else filename = name + "RooIntegralD0_RS.dat"; } sprintf(int_name,filename.c_str()); cout << int_name << endl; } EvtComplex RooIsobar::getamp(const EvtDalitzPoint *point) const { //This return the f(m+^2,m-^2) //The Isobar amplitude!!!!! EvtComplex dalitzamplitude(0.,0.); for (Int_t i=1; i<=nRes; i++) { //get the coefficient const EvtComplex coeff = EvtComplex(_ampRes[i]->getVal()*cos(_phaseRes[i]->getVal()*_pi/180.0),_ampRes[i]->getVal()*sin(_phaseRes[i]->getVal()*_pi/180.0)); //get the matrix element (aka Breit-Wigner term) const EvtComplex matrixelement = ResAmp(point,i); //the isobar is sum all the BW term dalitzamplitude += coeff*matrixelement; } return /*efficiency(point)*/dalitzamplitude; } Double_t RooIsobar::getamp_tanPhase(const EvtDalitzPoint *point) const { return imag(getamp(point))/real(getamp(point)); } //A brief comments here: //The Right Sign(RS) decay here is rhoplus, //which imply we are studying D0->K- pi+ pi0 (Not D0bar) // Our convention for the _trackinfo (K-,pi+,pi0) void RooIsobar::initResonance() { nRes = 16; //Define all RooRealVar floating observables _ampRes[1] = new RooRealVar("Rho_amp","Rho_amp",1.0,0.,100.); _ampRes[2] = new RooRealVar("Rho1450_amp","Rho1450_amp",0.1,0,100); _ampRes[3] = new RooRealVar("Rho1700_amp","Rho1700_amp",0.1,0,100); _ampRes[4] = new RooRealVar("Kstminus_amp","Kstminus_amp",0.1,0,100); _ampRes[5] = new RooRealVar("Kstm1410_amp","Kstm1410_amp",0.1,0,100); _ampRes[6] = new RooRealVar("Kstm1430_amp","Kstm1430_amp",2.85,0,100); _ampRes[7] = new RooRealVar("Kst2m1430_amp","Kst2m1430_amp",0.1,0,100); _ampRes[8] = new RooRealVar("Kst1680_amp","Kst1680_amp",0.1,0,100); _ampRes[9] = new RooRealVar("Kstzero_amp","Kstzero_amp",0.10,0,100); _ampRes[10] = new RooRealVar("Kstz1410_amp","Kstz1410_amp",0.1,0,100); _ampRes[11] = new RooRealVar("Kstz1430_amp","Kstz1430_amp",2.85,0,100); _ampRes[12] = new RooRealVar("Kst2z1430_amp","Kst2z1430_amp",0.1,0,100); _ampRes[13] = new RooRealVar("Kstz1680_amp","Kstz1680_amp",0.1,0,100); _ampRes[14] = new RooRealVar("NonReson_amp","NonReson_amp",4.0,0.,100.); _ampRes[15] = new RooRealVar("Kstm1430_CLEO_amp","Kstm1430_CLEO_amp",2.85,0,100); _ampRes[16] = new RooRealVar("Kstz1430_CLEO_amp","Kstz1430_CLEO_amp",2.85,0,100); _phaseRes[1] = new RooRealVar("Rho_phase","Rho_phase",0.0,-360.,360); _phaseRes[2] = new RooRealVar("Rho1450_phase","Rho1450_phase",0.1,-360,360); _phaseRes[3] = new RooRealVar("Rho1700_phase","Rho1700_phase",0.1,-360,360); _phaseRes[4] = new RooRealVar("Kstminus_phase","Kstminus_phase",136.639,-360,360); _phaseRes[5] = new RooRealVar("Kstm1410_phase","Kstm1410_phase",0.1,-360,360); _phaseRes[6] = new RooRealVar("Kstm1430_phase","Kstm1430_phase",70.290,-360,360); _phaseRes[7] = new RooRealVar("Kst2m1430_phase","Kst2m1430_phase",0.1,-360,360); _phaseRes[8] = new RooRealVar("Kst1680_phase","Kst1680_phase",0.1,-360,360); _phaseRes[9] = new RooRealVar("Kstzero_phase","Kstzero_phase",32.807,-360,360); _phaseRes[10] = new RooRealVar("Kstz1410_phase","Kstz1410_phase",0.1,-360,360); _phaseRes[11] = new RooRealVar("Kstz1430_phase","Kstz1430_phase",370.290,-360,360); _phaseRes[12] = new RooRealVar("Kst2z1430_phase","Kst2z1430_phase",0.1,-360,360); _phaseRes[13] = new RooRealVar("Kstz1680_phase","Kstz1680_phase",0.1,-360,360); _phaseRes[14] = new RooRealVar("NonReson_phase","NonReson_phase",108.999,-360.,360.); _phaseRes[15] = new RooRealVar("Kstm1430_CLEO_phase","Kstm1430_CLEO_phase",70.290,-360,360); _phaseRes[16] = new RooRealVar("Kstz1430_CLEO_phase","Kstz1430_CLEO_phase",370.290,-360,360); _massRes[1] = new RooRealVar("Rho_mass","Rho_mass",0.77670); _massRes[2] = new RooRealVar("Rho1450_mass","Rho1450_mass",1.465); _massRes[3] = new RooRealVar("Rho1700_mass","rho1700_mass",1.720); _massRes[4] = new RooRealVar("Kstminus_mass","Kstminus_mass",0.89166); _massRes[5] = new RooRealVar("Kstm1410_mass","Kstm1410_mass",1.414); _massRes[6] = new RooRealVar("Kstm1430_mass","Kstm1430_mass",1.414); _massRes[7] = new RooRealVar("Kst2m1430_mass","Kst2m1430_mass",1.4256); _massRes[8] = new RooRealVar("Kst1680_mass","Kst1680_mass",1.717); _massRes[9] = new RooRealVar("Kstzero_mass","Kstzero_mass",0.896); _massRes[10] = new RooRealVar("Kstz1410_mass","Kstz1410_mass",1.414); _massRes[11] = new RooRealVar("Kstz1430_mass","Kstz1430_mass",1.414); _massRes[12] = new RooRealVar("Kst2z1430_mass","Kst2z1430_mass",1.4324); _massRes[13] = new RooRealVar("Kstz1680_mass","Kstz1680_mass",1.717); _massRes[14] = new RooRealVar("NonReson_mass","NonReson_mass",0.); _massRes[15] = new RooRealVar("Kstm1430_CLEO_mass","Kstm1430_CLEO_mass",1.414); _massRes[16] = new RooRealVar("Kstz1430_CLEO_mass","Kstz1430_CLEO_mass",1.414); _gammRes[1] = new RooRealVar("Rho_width","Rho_width",151.12/1000.0); _gammRes[2] = new RooRealVar("Rho1450_width","Rho1450_width",400.0/1000.0); _gammRes[3] = new RooRealVar("Rho1700_width","rho1700_width",250.0/1000.0); _gammRes[4] = new RooRealVar("Kstminus_width","Kstminus_width",50.8/1000.0); _gammRes[5] = new RooRealVar("Kstm1410_width","Kstm1410_width",232.0/1000.0); _gammRes[6] = new RooRealVar("Kstm1430_width","Kstm1430_width",290.0/1000.0); _gammRes[7] = new RooRealVar("Kst2m1430_width","Kst2m1430_width",98.5/1000.0); _gammRes[8] = new RooRealVar("Kst1680_width","Kst1680_width",322.0/1000.0); _gammRes[9] = new RooRealVar("Kstzero_width","Kstzero_width",50.3/1000.0); _gammRes[10] = new RooRealVar("Kstz1410_width","Kstz1410_width",232.0/1000.0); _gammRes[11] = new RooRealVar("Kstz1430_width","Kstz1430_width",290.0/1000.0); _gammRes[12] = new RooRealVar("Kst2z1430_width","Kst2z1430_width",109.0/1000.0); _gammRes[13] = new RooRealVar("Kstz1680_width","Kstz1680_width",322.0/1000.0); _gammRes[14] = new RooRealVar("NonReson_width","NonReson_width",0.); _gammRes[15] = new RooRealVar("Kstm1430_CLEO_width","Kstm1430_CLEO_width",290.0/1000.0); _gammRes[16] = new RooRealVar("Kstz1430_CLEO_width","Kstz1430_CLEO_width",290.0/1000.0); _typeRes[1] = EvtPto3PAmp::RBW_CLEO; _typeRes[2] = EvtPto3PAmp::RBW_CLEO; _typeRes[3] = EvtPto3PAmp::RBW_CLEO; _typeRes[4] = EvtPto3PAmp::RBW_CLEO; _typeRes[5] = EvtPto3PAmp::RBW_CLEO; _typeRes[6] = EvtPto3PAmp::LASS; _typeRes[7] = EvtPto3PAmp::RBW_CLEO; _typeRes[8] = EvtPto3PAmp::RBW_CLEO; _typeRes[9] = EvtPto3PAmp::RBW_CLEO; _typeRes[10] = EvtPto3PAmp::RBW_CLEO; _typeRes[11] = EvtPto3PAmp::LASS; _typeRes[12] = EvtPto3PAmp::RBW_CLEO; _typeRes[13] = EvtPto3PAmp::RBW_CLEO; _typeRes[14] = EvtPto3PAmp::NONRES; _typeRes[15] = EvtPto3PAmp::RBW_CLEO; _typeRes[16] = EvtPto3PAmp::RBW_CLEO; _spinRes[1] = EvtSpinType::VECTOR; _spinRes[2] = EvtSpinType::VECTOR; _spinRes[3] = EvtSpinType::VECTOR; _spinRes[4] = EvtSpinType::VECTOR; _spinRes[5] = EvtSpinType::VECTOR; _spinRes[6] = EvtSpinType::SCALAR; _spinRes[7] = EvtSpinType::TENSOR; _spinRes[8] = EvtSpinType::VECTOR; _spinRes[9] = EvtSpinType::VECTOR; _spinRes[10] = EvtSpinType::VECTOR; _spinRes[11] = EvtSpinType::SCALAR; _spinRes[12] = EvtSpinType::TENSOR; _spinRes[13] = EvtSpinType::VECTOR; _spinRes[14] = EvtSpinType::SCALAR; _spinRes[15] = EvtSpinType::SCALAR; _spinRes[16] = EvtSpinType::SCALAR; _trackinfo[1] = EvtCyclic3::BC; _trackinfo[2] = EvtCyclic3::BC; _trackinfo[3] = EvtCyclic3::BC; _trackinfo[4] = EvtCyclic3::AC; _trackinfo[5] = EvtCyclic3::AC; _trackinfo[6] = EvtCyclic3::AC; _trackinfo[7] = EvtCyclic3::AC; _trackinfo[8] = EvtCyclic3::AC; _trackinfo[9] = EvtCyclic3::AB; _trackinfo[10] = EvtCyclic3::AB; _trackinfo[11] = EvtCyclic3::AB; _trackinfo[12] = EvtCyclic3::AB; _trackinfo[13] = EvtCyclic3::AB; _trackinfo[14] = EvtCyclic3::BC; _trackinfo[15] = EvtCyclic3::AC; _trackinfo[16] = EvtCyclic3::AB; _aLASS[1] = new RooRealVar("aZero","aZero",2.,-10,10.); _aLASS[2] = new RooRealVar("aMinus","aMinus",2.,-10,10.); _rLASS[1] = new RooRealVar("rZero","rZero",3.,-10,10.); _rLASS[2] = new RooRealVar("rMinus","rMinus",3.,-10,10.); _BLASS[1] = new RooRealVar("BZero","BZero",-0.96,-10,10.); _BLASS[2] = new RooRealVar("BMinus","BMinus",1.,-10,10.); _RLASS[1] = new RooRealVar("RZero","RZero",1.,-10,10.); _RLASS[2] = new RooRealVar("RMinus","RMinus",1.,-10,10.); _phiBLASS[1] = new RooRealVar("phiBZero","phiBZero",-0.96,-10,10.); _phiBLASS[2] = new RooRealVar("phiBMinus","phiBMinus",1.,-10,10.); _phiRLASS[1] = new RooRealVar("phiRZero","phiRZero",1.,-10,10.); _phiRLASS[2] = new RooRealVar("phiRMinus","phiRMinus",1.,-10,10.); // setup Daugther type _nameRes[1] = TString("Rho"); _nameRes[2] = TString("Rho1400"); _nameRes[3] = TString("Rho1700"); _nameRes[4] = TString("Kstarminus"); _nameRes[5] = TString("Kstm1410"); _nameRes[6] = TString("Kstm1430"); _nameRes[7] = TString("Kst2m1430"); _nameRes[8] = TString("Kstar1680"); _nameRes[9] = TString("Kstarzero"); _nameRes[10] = TString("Kstz1410"); _nameRes[11] = TString("Kstz1430"); _nameRes[12] = TString("Kst2z1430"); _nameRes[13] = TString("Kstz1680"); _nameRes[14] = TString("Non resonant"); _nameRes[15] = TString("Kstm1430_CLEO"); _nameRes[16] = TString("Kstm1430_CLEO"); //put all RooRealVar into the observable list //We only float the amplitude and phase //For the time-dependent fit, this should be modified //Now readin the initial values from isobar_XS.txt RooArgSet parameters; for (Int_t dummy=1;dummy<=nRes;dummy++) { //cout << "RooIsobar::Now we are reading resonance information " << dummy << endl; //adding the rho width too to let roofit float it parameters.add(*_gammRes[dummy]); parameters.add(*_massRes[dummy]); if(dummy == 1 || dummy == 2){ parameters.add(*_aLASS[dummy]); parameters.add(*_rLASS[dummy]); parameters.add(*_BLASS[dummy]); parameters.add(*_RLASS[dummy]); parameters.add(*_phiBLASS[dummy]); parameters.add(*_phiRLASS[dummy]); } parameters.add(*_ampRes[dummy]); parameters.add(*_phaseRes[dummy]); } string configname; if(!_isWS) configname = name + "isobar_RS.txt"; else configname = name + "isobar_WS.txt"; parameters.readFromFile(configname.c_str()); //define the list of observables(which is our floating parameters) _obs_list = new RooArgList(); for (Int_t dummy=1;dummy<=nRes;dummy++) { //cout << "Now adding " << _nameRes[dummy] << endl; _obs_list->add(*_phaseRes[dummy]); _obs_list->add(*_ampRes[dummy]); if(dummy==1 || dummy==3 || dummy == 4 || dummy == 9 || dummy == 6 || dummy == 11) _obs_list->add(*_gammRes[dummy]); if(dummy==1 || dummy==3 || dummy == 4 || dummy == 9 || dummy == 6 || dummy == 11) _obs_list->add(*_massRes[dummy]); if(dummy == 1 || dummy == 2){ _obs_list->add(*_aLASS[dummy]); _obs_list->add(*_rLASS[dummy]); _obs_list->add(*_RLASS[dummy]); _obs_list->add(*_BLASS[dummy]); _obs_list->add(*_phiRLASS[dummy]); _obs_list->add(*_phiBLASS[dummy]); } } //end the initalization } //This returns our Form Factor //In most of the case, we return relativistic Breit-Wigner EvtComplex RooIsobar::ResAmp(const EvtDalitzPoint *_dalitzPoint, const Int_t i) const { if(!_dalitzPoint->isValid()) assert (0); // no physics reason to fail //retrieve the informations about the resonance const Double_t res_Mass = _massRes[i]->getVal(); const EvtSpinType::spintype res_Spin = _spinRes[i]; const EvtCyclic3::Pair res_Pair = _trackinfo[i]; EvtCyclic3::Pair hel_Pair = EvtCyclic3::next( res_Pair ); const EvtPto3PAmp::NumType res_Type = _typeRes[i]; if(res_Pair==EvtCyclic3::AC) hel_Pair = EvtCyclic3::prev( res_Pair ); if (res_Type==EvtPto3PAmp::NONRES) return EvtComplex(1.,0.); else if(res_Type==EvtPto3PAmp::LASS) return LASS(_dalitzPoint,i); else if(res_Type == EvtPto3PAmp::RBW_ZEMACH){ const Double_t res_gamma_running = runningWidth(_dalitzPoint->q(res_Pair),i); const EvtPropBreitWignerRel evtProp(res_Mass,res_gamma_running); EvtPto3PAmp amplitude(*_dalitzSpace,hel_Pair,res_Pair,res_Spin,evtProp,EvtPto3PAmp::RBW_ZEMACH); //set the Blatt factor amplitude.set_fd(1.5); amplitude.set_fb(5.); return amplitude.evaluate(*_dalitzPoint); } else if(res_Type == EvtPto3PAmp::RBW_CLEO){ const Double_t res_gamma_running = runningWidth(_dalitzPoint->q(res_Pair),i); const EvtPropBreitWignerRel evtProp(res_Mass,res_gamma_running); EvtPto3PAmp amplitude(*_dalitzSpace,hel_Pair,res_Pair,res_Spin,evtProp,EvtPto3PAmp::RBW_CLEO); //set the Blatt factor amplitude.set_fd(1.5); amplitude.set_fb(5.0); return amplitude.evaluate(*_dalitzPoint); } else assert(0); return 0.; } EvtComplex RooIsobar::LASS(const EvtDalitzPoint *_dalitzPoint, const Int_t i) const { const Double_t _mass = _massRes[i]->getVal(); const Double_t _width = _gammRes[i]->getVal(); const EvtCyclic3::Pair res_Pair = _trackinfo[i]; Int_t Kidx(0); Double_t _m1 = 0., _m2 = 0.; if(res_Pair==EvtCyclic3::AB){ _m1 = mA; _m2 = mB; Kidx = 1; } if(res_Pair==EvtCyclic3::AC){ _m1 = mA; _m2 = mC; Kidx = 2; } const Double_t _a = _aLASS[Kidx]->getVal(); //need to be float const Double_t _r = _rLASS[Kidx]->getVal(); //need to be float const Double_t _B = _BLASS[Kidx]->getVal(); //need to be float const Double_t _R = _RLASS[Kidx]->getVal(); //need to be float const Double_t _phiB = _phiBLASS[Kidx]->getVal(); //need to be float const Double_t _phiR = _phiRLASS[Kidx]->getVal(); //need to be float const Double_t s = _dalitzPoint->q(res_Pair); if (s < 4.) { const Double_t m0Square = pow(_mass,2.); const Double_t m = sqrt(_dalitzPoint->q(res_Pair)); const Double_t q0 = pionCMmom(m0Square, _m1, _m2); const Double_t q = pionCMmom(s, _m1, _m2); const Double_t GammaM = runningWidth(s,i); if(q == 0.) { //this should not happen cout << "Hold on.....the q is zero ! " << endl; return EvtComplex(m*_a + m0Square*_width/q0/(m0Square - s), 0.); } const Double_t cot_deltaB = 1./(_a*q) + 0.5*_r*q; const Double_t _deltaB = atan( 1./cot_deltaB); const Double_t totalB = (_deltaB + _phiB*_pi/180.) ; const Double_t deltaR = atan((_mass*GammaM/(m0Square - s))); const Double_t totalR = deltaR + _phiR*_pi/180.; EvtComplex bkgB = EvtComplex(_B*sin(totalB),0.)*EvtComplex(cos(totalB),sin(totalB)); EvtComplex resT = EvtComplex(_R*sin(deltaR),0.)*EvtComplex(cos(totalR),sin(totalR))*EvtComplex(cos(2*totalB),sin(2*totalB)); //EvtComplex bkgB = EvtComplex(_B*sin(totalB),0.); //EvtComplex resT = EvtComplex(_R*sin(deltaR),0.)*EvtComplex(cos(totalR),sin(totalR))*EvtComplex(cos(totalB),sin(totalB)); return bkgB + resT; } else return EvtComplex(0.,0.); } //this is only for the rho parametrization Double_t RooIsobar::runningWidth(const Double_t s, const Int_t i) const { const Double_t width = _gammRes[i]->getVal(); const Double_t mass2 = pow(_massRes[i]->getVal(),2); const EvtCyclic3::Pair res_Pair = _trackinfo[i]; const EvtSpinType::spintype res_Spin = _spinRes[i]; Double_t _m1 = 0., _m2 = 0.; if(res_Pair==EvtCyclic3::AB){ _m1 = mA; _m2 = mB; } if(res_Pair==EvtCyclic3::AC){ _m1 = mA; _m2 = mC; } if(res_Pair==EvtCyclic3::BC){ _m1 = mB; _m2 = mC; } const Double_t k_s = pionCMmom(s,_m1,_m2); const Double_t k_m0 = pionCMmom(mass2,_m1,_m2); const EvtBlattWeisskopf fr(1,1.5,mass2); //return width * sqrt(mass2/s) * pow( k_s/k_m0, 3 ) * pow( (fr)(s), 2); return width * sqrt(mass2/s) * pow( k_s/k_m0, EvtSpinType::getSpinStates(res_Spin)) * pow( (fr)(s), 2); } EvtComplex RooIsobar::efficiency(const EvtDalitzPoint *point) const { //need cos12 and mAB to determine efficiency const Double_t mAB = point->q(EvtCyclic3::AB); const Double_t mAC = point->q(EvtCyclic3::AC); const Double_t cos12 = _dalitzSpace->cosTh(EvtCyclic3::AC,mAC,EvtCyclic3::AB,mAB); //const Double_t cos12 = _dalitzSpace->cosTh(EvtCyclic3::AB,mAB,EvtCyclic3::AC,mAC); const Double_t m12min = _dalitzSpace->qAbsMin(EvtCyclic3::AB); const Double_t m12max = _dalitzSpace->qAbsMax(EvtCyclic3::AB); const Double_t dm12 = (m12max-m12min)/ndiv_eff; for(Int_t i=0;i<ndiv_eff;i++){ if(floor((mAB-m12min)/dm12) == i){ const Double_t n0 = _n0[i]->getVal(); const Double_t n1 = _n1[i]->getVal(); const Double_t c1 = _c1[i]->getVal(); const Double_t c2 = _c2[i]->getVal(); const Double_t c3 = _c3[i]->getVal(); const Double_t c4 = _c4[i]->getVal(); const Double_t c5 = _c5[i]->getVal(); const Double_t eff = 0.5*(n1/n0)*(1. + c1*cos12 + c2*(3.*pow(cos12,2.)-1.) + c3*(5.*pow(cos12,3.)-3.*cos12) + c4*(35.*pow(cos12,4.)-30.*pow(cos12,2.)+3.) + c5*(63.*pow(cos12,5.)-70.*pow(cos12,3.)+15.*cos12)); return EvtComplex(sqrt(eff),0.); } } assert(0); return EvtComplex(0.,0.); } void RooIsobar::readefficiency() { RooRealVar n0("n0","n0",1.); RooRealVar n1("n1","n1",1.); RooRealVar c1("c1","c1",1.); RooRealVar c2("c2","c2",1.); RooRealVar c3("c3","c3",1.); RooRealVar c4("c4","c4",1.); RooRealVar c5("c5","c5",1.); RooArgSet varlist; varlist.add(n0); varlist.add(n1); varlist.add(c1); varlist.add(c2); varlist.add(c3); varlist.add(c4); varlist.add(c5); for(Int_t i=0;i<ndiv_eff;i++){ char map[100]; if(!_isWS){ if(_D0flav==-1) sprintf(map,"effmap_%d.txt",i); else sprintf(map,"effmap_bar_%d.txt",i); } else{ if(_D0flav==-1) sprintf(map,"effmap_bar_%d.txt",i); else sprintf(map,"effmap_%d.txt",i); } string map2(map); string mapfile = name + map2; cout << "reading efficiency map file " << mapfile << endl; varlist.readFromFile(mapfile.c_str()); _n0.push_back(new RooRealVar("_n0","_n0",n0.getVal())); _n1.push_back(new RooRealVar("_n0","_n0",n1.getVal())); _c1.push_back(new RooRealVar("_n0","_n0",c1.getVal())); _c2.push_back(new RooRealVar("_n0","_n0",c2.getVal())); _c3.push_back(new RooRealVar("_n0","_n0",c3.getVal())); _c4.push_back(new RooRealVar("_n0","_n0",c4.getVal())); _c5.push_back(new RooRealVar("_n0","_n0",c5.getVal())); } } void RooIsobar::helicityangle(RooDataSet *data) const { RooRealVar *cos12 = new RooRealVar("cos12","cos12",-1,1); RooRealVar *cos13 = new RooRealVar("cos13","cos13",-1,1); RooRealVar *cos23 = new RooRealVar("cos23","cos23",-1,1); RooDataSet *data2 = new RooDataSet("data2","data2",RooArgSet(*cos12,*cos13,*cos23)); for(Int_t i=0;i<data->numEntries();i++ ){ const RooArgSet* row = data->get(i); RooRealVar* mass12 =(RooRealVar*) row->find("m2Kpi_d0mass"); //recall! mass12 is the peaking one! RooRealVar* mass13 =(RooRealVar*) row->find("m2Kpi0_d0mass"); const Double_t m13=mass13->getVal(); //good, m13 is peaking const Double_t m12=mass12->getVal(); Double_t cFromM(0.); for(Int_t n=1;n<=3;n++) { switch (n) { //n is the _trackinfo case 1: //pi+ pi- is resonace pair cFromM = _dalitzSpace->cosTh(EvtCyclic3::AC,m13,EvtCyclic3::AB,m12); cos23->setVal(cFromM); break; case 2: //Ks pi- is the resonance pair (Cabibbo allow decay) cFromM = _dalitzSpace->cosTh(EvtCyclic3::AB,m12,EvtCyclic3::AC,m13); cos13->setVal(cFromM); break; case 3: //ks pi+ is the resonace pair (Cabibbo suppress decay) cFromM = _dalitzSpace->cosTh(EvtCyclic3::AC,m13,EvtCyclic3::AB,m12); cos12->setVal(cFromM); break; } } //end the small for loop data2->add(RooArgList(*cos12,*cos13,*cos23)); } //end the for loop cout << "Finished ! no problem " << endl; data->merge(data2); } Double_t RooIsobar::pionCMmom(const Double_t s, const Double_t m1, const Double_t m2) const { const Double_t mprime = pow(m1 + m2,2); const Double_t msecond = pow(m1 - m2,2); const Double_t rad1 = 1.0 - mprime/s; const Double_t rad2 = 1.0 - msecond/s; const Double_t betakin1 = (rad1 > 0.) ? sqrt( rad1 ) : 1.; const Double_t betakin2 = (rad2 > 0.) ? sqrt( rad2 ) : 1.; return 0.5*sqrt(s)*betakin1*betakin2; }
5b709bb89bdf6ed045992ed122720a8b6cb2a5c5
251921a9bad70bf0cef196a755b17a30e583d49d
/ArpHeader/Glasslike/GlApp.h
8bf5b847e98bba569906d674cdbfd52d0feb32dc
[ "Artistic-1.0" ]
permissive
tgkokk/Sequitur
6d25b901c14960445230c91571934b3bdc0db214
de306eb37de25cd8237c9a4bd30ce3e7a7ed416f
refs/heads/master
2021-01-17T07:50:13.962534
2014-01-01T21:52:41
2014-01-01T21:52:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,345
h
GlApp.h
/* GlApp.h * Copyright (c)2002-2004 by Eric Hackborn. * All rights reserved. * * This code is not public domain, nor freely distributable. * Please direct any questions or requests to Eric Hackborn, * at <hackborn@angryredplanet.com>. * * ---------------------------------------------------------------------- * * To Do * ~~~~~~~~~~ * * - Nothing! * * ---------------------------------------------------------------------- * * Known Bugs * ~~~~~~~~~~ * * - None! Ha ha! * * ---------------------------------------------------------------------- * * History * ~~~~~~~ * 04.18.99 hackborn * Created this file. */ #ifndef GLASSLIKE_GLAPP_H #define GLASSLIKE_GLAPP_H #include <ArpCore/StlVector.h> #include <be/app/Application.h> #include <be/interface/Rect.h> #include <be/interface/Window.h> #include <be/storage/File.h> #include <be/support/Locker.h> #include <Glasslike/GlGlobalsImpl.h> #include <Glasslike/GlKeyTracker.h> #include <Glasslike/GlMidiBinding.h> #include <Glasslike/GlSkinCache.h> #include <Glasslike/GlToolBar.h> /* FIX: Remove this when done with lib testing */ void _PREFS_INIT_TEMP(); /*************************************************************************** * GL-APP ***************************************************************************/ class GlApp : public BApplication { public: GlApp(); virtual ~GlApp(); virtual bool IsQuitting() const; virtual void MessageReceived(BMessage *msg); virtual bool QuitRequested(void); virtual void ReadyToRun(); GlKeyTracker& KeyTracker(); void SetMidiTarget(const BMessenger& target); void UnsetMidiTarget(const BMessenger& target); GlMidiBindingList& MidiBindings(); GlToolBarRoster& ToolBars(); GlSkinCache& Skin(); enum { PREF_WIN_INDEX = 0, _NUM_AUX_WIN }; /* This method is used by the auxiliary windows to persist the state * of each window between invocations. */ void SetAuxiliaryWindowSettings( uint32 index, const BMessage& settings); enum { MIXING_WIN_INDEX = 0, _NUM_SETTINGS }; void SetSettings(uint32 index, const BMessage& settings); private: typedef BApplication inherited; GlMidi mMidi; GlKeyTracker mKeyTracker; GlMidiBindingList mMidiBindings; GlGlobalsImpl mGlobalsImpl; GlToolBarRoster mToolBars; GlSkinCache mSkinCache; vector<BMessenger> mMixingWins; bool mIsQuitting; /* This lock is used whenever the auxiliary windows -- * preferences, filters, or tool properties -- are storing * their configuration. */ mutable BLocker mSettingsLock; BMessenger mAuxWins[_NUM_AUX_WIN]; BRect mAuxWinInitFrames[_NUM_AUX_WIN]; BMessage mAuxWinSettings[_NUM_AUX_WIN]; BMessage mSettings[_NUM_SETTINGS]; bool mSettingsChanges[_NUM_SETTINGS]; void ShowAuxiliaryWindow(uint32 index, BMessage* msg); BWindow* NewAuxiliaryWindow( uint32 index, BRect frame, BMessage* config, const BMessage* msg) const; void InitRects(); status_t SaveState(); void LoadState(); BFile* SettingsFile( uint32 open_mode, const char* fileName, const char* mimeType = "text/plain") const; void AcquireImages(); void ReleaseImages(); }; /* A convenience for anyone accessing the application */ #define gl_app ((GlApp*)be_app) #endif
24885d5e4cef4bba4f7579ff6477bccdd51da18c
1eab31ab4103f43d772e79872b0578a5960a0830
/ClearEffect.cpp
334d248404787fa284f89057c95b164c78ffb147
[]
no_license
Bit-Rot/StarBarfBlinky
7272c971f5f37969acd6b206002e596b6f80c414
cd49d755af489aca4056ab6df4c09f6dcd7f617e
refs/heads/master
2021-01-20T17:54:18.079106
2016-08-14T04:09:14
2016-08-14T04:09:14
64,902,052
3
0
null
2016-08-13T23:28:04
2016-08-04T04:18:48
C++
UTF-8
C++
false
false
158
cpp
ClearEffect.cpp
#include "ClearEffect.h" ClearEffect::ClearEffect(PixelStrip *pixelStrip) : Effect(pixelStrip) { } void ClearEffect::init() { Effect::init(); clear(); }
c4a18cdbc61436700e8ac641ed0283074a439051
7b0a12d6e9d9dce71244551c4c320dfa7b33f42e
/CCE-ALLOCATION/C/CCE_Allocation/cutscallback.cpp
90cf6f1fd43298c021f66f257146f116e41b6ddb
[]
no_license
matheusota/MO648
572d6423c626b8ee63e5819e52b1ad93759d2575
76bd855c3bf4c1e16c06252a1fed780d548a1d04
refs/heads/master
2020-03-28T14:59:36.816909
2019-10-23T17:55:24
2019-10-23T17:55:24
148,544,539
0
0
null
null
null
null
UTF-8
C++
false
false
3,564
cpp
cutscallback.cpp
#include "cutscallback.h" CutsCallback::CutsCallback(vector<User> &users, int R, map<int, map<int, GRBVar>> &x): users(users), x(x){ this->R = R; } // callback function // Implements Van den Akker algorithm void CutsCallback::callback(){ // integer solution if (where == GRB_CB_MIPSOL){ solution_value = &CutsCallback::getSolution; } // fractional solution else if ((where == GRB_CB_MIPNODE) && (getIntInfo(GRB_CB_MIPNODE_STATUS) == GRB_OPTIMAL)){ solution_value = &CutsCallback::getNodeRel; } else{ return; } map<int, int> countSize; countSize[1] = 0; countSize[2] = 0; countSize[4] = 0; countSize[8] = 0; for(auto user: users){ countSize[user.size]++; } for(auto user : users){ countSize[user.size]--; int maxSize = 0; for(int s = 8; s >= 1; s /= 2){ if(countSize[s] > 0){ maxSize = s; break; } } for(int l = user.size - 1; l < R; l++){ if(find(user.begins.begin(), user.begins.end(), l) != user.begins.end() && ((this ->*solution_value)(x[user.id][l]) >= 0.1) && ((this ->*solution_value)(x[user.id][l]) <= 0.9)){ for(int u = l + 1; u < l + maxSize; u++){ if(find(user.begins.begin(), user.begins.end(), u) != user.begins.end() && ((this ->*solution_value)(x[user.id][u]) >= 0.1) && ((this ->*solution_value)(x[user.id][u]) <= 0.9)){ double sum1 = 0; for(int s = max(0, l - user.size); s <= u; s++){ if(find(user.begins.begin(), user.begins.end(), s) != user.begins.end()){ sum1 += (this ->*solution_value)(x[user.id][s]); } } double sum2 = 0; for(auto user2 : users){ if(user2.id != user.id){ for(int s = max(0, u - user2.size); s <= l; s++){ if(find(user2.begins.begin(), user2.begins.end(), s) != user2.begins.end()){ sum2 += (this ->*solution_value)(x[user2.id][s]); } } } } // violation found, add the cut if(sum1 + sum2 > 1){ GRBLinExpr expr; for(int s = max(0, l - user.size); s <= u; s++){ if(find(user.begins.begin(), user.begins.end(), s) != user.begins.end()){ expr += x[user.id][s]; } } for(auto user2 : users){ if(user2.id != user.id){ for(int s = max(0, u - user2.size); s <= l; s++){ if(find(user2.begins.begin(), user2.begins.end(), s) != user2.begins.end()){ expr += x[user2.id][s]; } } } } addLazy(expr <= 1); } } } } } } }
a683a362254a843bbfcfd78ddfbaf1cccdb0dd84
d0010bab60052eaf751dcf1266331c832580540d
/read_mnist.h
31997e651bf038fde6f83de812481c86e4f6f7d5
[]
no_license
Qingsdz/bp_network_mnist
57bcf18f6c0c680247982015779de9ad2507f2f1
7a4cd7a06e63a74461b0599d8f3ee24eeec4aad9
refs/heads/main
2023-04-30T18:07:26.791615
2021-05-23T05:15:01
2021-05-23T05:15:01
369,966,388
0
0
null
null
null
null
GB18030
C++
false
false
2,431
h
read_mnist.h
#ifndef READ_MNIST #define READ_MNIST #include<iostream> #include<fstream> #include"matrix.h" using namespace std; const int output_number = 10; class read_mnist { public: read_mnist(); void get_new(); void write_to_ppm(); int ReversalInt(int nValue) { unsigned char cTemp1 = nValue & 255; unsigned char cTemp2 = (nValue >> 8) & 255; unsigned char cTemp3 = (nValue >> 16) & 255; unsigned char cTemp4 = (nValue >> 24) & 255; int nData = static_cast<int>(cTemp1) << 24; nData += static_cast<int>(cTemp2) << 16; nData += static_cast<int>(cTemp3) << 8; return nData + cTemp4; } int number; int row; int col; int magic; int total_pixel; matrix image; int int_lable; matrix lable; fstream fmnist; fstream flable; fstream foutput; unsigned char* char_image; }; read_mnist::read_mnist() { fmnist.open("D:/files/document/BPnetwork/mnist/train-images-idx3-ubyte", ios::in | ios::binary);//这里一定要家长binary,记住中间不能使用逗号,要用|,做运算 if (!fmnist) { cout << "Error opening file."; } fmnist.read(reinterpret_cast<char*> (&magic), sizeof(magic)); fmnist.read(reinterpret_cast<char*> (&number), sizeof(number)); fmnist.read(reinterpret_cast<char*> (&row), sizeof(row)); fmnist.read(reinterpret_cast<char*> (&col), sizeof(col)); flable.open("D:/files/document/BPnetwork/mnist/train-labels-idx1-ubyte", ios::in | ios::binary); if (!flable) { cout << "Error opening file."; } flable.read(reinterpret_cast<char*> (&magic), sizeof(number)); flable.read(reinterpret_cast<char*> (&number), sizeof(number)); magic = ReversalInt(magic); number = ReversalInt(number); row = ReversalInt(row); col = ReversalInt(col); total_pixel = row * col; int_lable = 0; char_image = new unsigned char[total_pixel]; matrix* temp = new matrix(row, col); image = *temp; delete temp; temp = new matrix(output_number, 1); lable = *temp; delete temp; } void read_mnist::get_new() { fmnist.read(reinterpret_cast<char*>(char_image), total_pixel); for (int i = 0; i < total_pixel; i++) { image[i] = double(char_image[i]) / 255.0; } flable.read(reinterpret_cast<char*>(&int_lable), 1); for (int i = 0; i < output_number; i++) { if (int_lable == i) { lable[i] = 1.0; } else { lable[i] = 0.0; } } } void read_mnist::write_to_ppm() { } #endif
415d330e053878e386b5af2326d76b33ea664420
ea4ca4a1003aeac5a71fdc1f8d965841470f8879
/C++/C++ Basic 2/B_5635.cpp
2352beb88903e1161f83dfcd2fb6eb36ffa0b326
[]
no_license
SeMin4/AlgorithmStudy
e2aba3bf1d369943bf2f745c79b6e4f8f6f82a1d
f698482126362b9e95055b39d48fda7fb0758d73
refs/heads/master
2023-05-28T17:27:16.986157
2021-06-19T13:11:26
2021-06-19T13:11:26
237,901,891
1
0
null
null
null
null
UTF-8
C++
false
false
726
cpp
B_5635.cpp
#include<iostream> #include<string> using namespace std; int main() { int numerOfStudent; string studentName; int day; int month; int year; int max_sum, min_sum; string maxStudentName; string minStudentName; cin >> numerOfStudent; max_sum = -1; min_sum = 4000000; while (numerOfStudent > 0) { numerOfStudent--; cin >> studentName; cin >> day; cin >> month; cin >> year; if (max_sum < day + month * 30 + year * 365) { max_sum = day + month * 30 + year * 365; maxStudentName = studentName; } if (min_sum > day + month * 30 + year * 365) { min_sum = day + month * 30 + year * 365; minStudentName = studentName; } } cout << maxStudentName << '\n' << minStudentName << '\n'; return 0; }
67a35e563315f3f183e90039100d915c48ea5e42
7dc7ad170c6692d683fdcf595be7ad913dfe9118
/Problem#1_2/Problem#1_2/main.cpp
1ed1d4324e7e207fc7f7e96aaaeed87ff6107b95
[]
no_license
rgnlax/Algorithms
da00e2791b1a15a474be2fa8dc7f6fb20e345086
055206a92a83671c3b9cf9d98e70312ed7e9ce06
refs/heads/master
2021-01-10T05:11:47.610622
2016-03-08T21:03:37
2016-03-08T21:03:37
53,436,238
0
0
null
null
null
null
UTF-8
C++
false
false
1,210
cpp
main.cpp
//Во всех вариантах данной задачи необходимо реализовать указанный алгоритм сортировки массива целых чисел. Количество чисел в массиве определяется окончанием стандартного потока ввода и заранее не известно. #include <iostream> #include <vector> void selectionSort(int *array, size_t count); int main() { std::vector<int> arr; //Ввод данных в массив while(true) { int number; std::cin >> number; if(std::cin.fail()) { break; } arr.push_back(number); } //Сортировка selectionSort(&arr[0], arr.size()); //Вывод for(size_t i = 0; i < arr.size(); ++i) { std::cout << arr[i] << " "; } return 0; } void selectionSort(int *array, size_t count) { for (int i = 0; i < count - 1; ++i) { int minIndex = i; for (int j = i + 1; j < count; ++j) { if (array[j] < array[minIndex]) { minIndex = j; } } std::swap(array[i], array[minIndex]); } }
1ab158f3266f4d2ee90f7cacd8e880e5387a4b8f
06da8e75c0615160dda7d9334f9bdf93f2d29ea1
/Shiny/Game.h
456d68d34bb3be529e74ad92a78e42c2ad1bb2b9
[]
no_license
haoxiner/Shiny
d3daa327eb552aa6440a8cb715ed3893a4463ad3
c0821306718951d6c7da8d5f612fa0cda2f9f1ea
refs/heads/master
2020-06-11T07:23:58.967945
2017-06-16T13:16:15
2017-06-16T13:16:15
75,735,334
0
0
null
null
null
null
UTF-8
C++
false
false
950
h
Game.h
#pragma once #include "Input.h" #include "Mesh.h" #include "Material.h" #include "Entity.h" #include "ThirdPersonCamera.h" #include "ShaderProgram.h" #include "MasterRenderer.h" #include "Cubemap.h" #include "Terrain.h" #include "Player.h" #include "Camera.h" #include "MathUtil.h" #include <vector> namespace Shiny { class Game { public: bool Startup(int xResolution, int yResolution, const Input* input); void Update(float deltaTime, const Input& input); void Render(); void Shutdown(); private: ThirdPersonCamera thirdPersonCamera_; std::vector<std::shared_ptr<Mesh>> meshes_; std::shared_ptr<Material> bronzeMetal_; std::unique_ptr<SkyBox> skyBox_; std::unique_ptr<Terrain> terrain_; MasterRenderer masterRenderer_; BatchOfStationaryEntity batchOfStationaryEntity_; BatchOfAnimatingEntity batchOfAnimatingEntity_; std::shared_ptr<Animation> animation_; std::unique_ptr<Player> player_; }; }
ed026593f9304a5ca0e8e691f72106f03d657a67
fb6d28aa1255a2588e05aa7889ac0921fbb47aeb
/ClrsExercise/Chapter14 (Augmenting Data Structures)/14.1-7.cpp
edfb6406c6a518cfc7a857e37a0d9f220fef651a
[]
no_license
OasisGallagher/CLRS
c1471a05ec51ff47b193cc74047fd2efbe80e15b
c11843faff5ee50b59ba774800c6f8e973b9c6b6
refs/heads/master
2020-12-17T01:45:59.622658
2016-05-31T02:48:15
2016-05-31T02:48:15
59,834,685
1
0
null
null
null
null
UTF-8
C++
false
false
368
cpp
14.1-7.cpp
/* * 逆序对即, 对于数组A中任意的位置i和j, 满足A[i] > A[j]且i < j的(i, j) * 数. * 对于第j个插入到树中的元素(j = 1 ... n), j - RANK(arr[j])即为所求. * 插入第j个数y之后, RANK即为1~j数中, 小于等于y的元素的个数, 那么, 这个数 * 被j减之后, 即为大于y的元素的个数, 即为逆序对的个数. */
48fc4f7e26a6dd20088fc024870427c663d513ec
f1c01a3b5b35b59887bf326b0e2b317510deef83
/SDK/SoT_MysteriousNotes_classes.hpp
8bb65c839976da4f435a6b5e2b6c2a31eb84f2d0
[]
no_license
codahq/SoT-SDK
0e4711e78a01f33144acf638202d63f573fa78eb
0e6054dddb01a83c0c1f3ed3e6cdad5b34b9f094
refs/heads/master
2023-03-02T05:00:26.296260
2021-01-29T13:03:35
2021-01-29T13:03:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,781
hpp
SoT_MysteriousNotes_classes.hpp
#pragma once // Sea of Thieves (2.0) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_MysteriousNotes_structs.hpp" namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // Class MysteriousNotes.HasPlayerMysteriousNotesRadialContext // 0x0000 (0x0028 - 0x0028) class UHasPlayerMysteriousNotesRadialContext : public URadialContextBase { public: static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.HasPlayerMysteriousNotesRadialContext")); return ptr; } }; // Class MysteriousNotes.MysteriousNoteDesc // 0x0000 (0x0130 - 0x0130) class UMysteriousNoteDesc : public UItemDesc { public: static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.MysteriousNoteDesc")); return ptr; } }; // Class MysteriousNotes.MysteriousNotesCompletionEventsModelDataAsset // 0x0010 (0x0038 - 0x0028) class UMysteriousNotesCompletionEventsModelDataAsset : public UDataAsset { public: TArray<struct FMysteriousNotesCompletionEventsModel> MysteriousNoteCompletionEvents; // 0x0028(0x0010) (Edit, ZeroConstructor, DisableEditOnInstance) static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.MysteriousNotesCompletionEventsModelDataAsset")); return ptr; } }; // Class MysteriousNotes.MysteriousNoteSettings // 0x0090 (0x00B8 - 0x0028) class UMysteriousNoteSettings : public UObject { public: int LookAheadInMinutes; // 0x0028(0x0004) (Edit, ZeroConstructor, Config, DisableEditOnInstance, IsPlainOldData) float RequestTimeout; // 0x002C(0x0004) (Edit, ZeroConstructor, Config, DisableEditOnInstance, IsPlainOldData) struct FStringAssetReference MysteriousNotesCompletionStringsAsset; // 0x0030(0x0010) (Edit, ZeroConstructor, Config, DisableEditOnInstance) struct FStringAssetReference DefaultRadialIcon; // 0x0040(0x0010) (Edit, ZeroConstructor, Config, DisableEditOnInstance) struct FStringAssetReference WieldableNoteDataAsset; // 0x0050(0x0010) (Edit, ZeroConstructor, Config, DisableEditOnInstance) struct FStringAssetReference Image; // 0x0060(0x0010) (Edit, ZeroConstructor, Config, DisableEditOnInstance) struct FStringAssetReference NotificationBackground; // 0x0070(0x0010) (Edit, ZeroConstructor, Config, DisableEditOnInstance) struct FText NotificationText; // 0x0080(0x0038) (Edit, Config, DisableEditOnInstance) static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.MysteriousNoteSettings")); return ptr; } }; // Class MysteriousNotes.MysteriousNotesServiceInterface // 0x0000 (0x0028 - 0x0028) class UMysteriousNotesServiceInterface : public UInterface { public: static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.MysteriousNotesServiceInterface")); return ptr; } }; // Class MysteriousNotes.WieldableMysteriousNoteLayout // 0x0120 (0x0148 - 0x0028) class UWieldableMysteriousNoteLayout : public UDataAsset { public: struct FText DefaultTitle; // 0x0028(0x0038) (Edit, DisableEditOnInstance) struct FText DefaultBody; // 0x0060(0x0038) (Edit, DisableEditOnInstance) struct FWieldableMysteriousNoteLayoutItem DefaultNoteLayoutItem; // 0x0098(0x00A0) (Edit, DisableEditOnInstance) TArray<struct FWieldableMysteriousNoteLayoutItem> NoteLayoutItems; // 0x0138(0x0010) (Edit, ZeroConstructor, DisableEditOnInstance) static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.WieldableMysteriousNoteLayout")); return ptr; } }; // Class MysteriousNotes.WieldableMysteriousNoteDataAsset // 0x0010 (0x0038 - 0x0028) class UWieldableMysteriousNoteDataAsset : public UDataAsset { public: class UClass* WieldableNoteDesc; // 0x0028(0x0008) (Edit, ZeroConstructor, DisableEditOnInstance, IsPlainOldData) class UWieldableMysteriousNoteLayout* NoteLayout; // 0x0030(0x0008) (Edit, ZeroConstructor, DisableEditOnInstance, IsPlainOldData) static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.WieldableMysteriousNoteDataAsset")); return ptr; } }; // Class MysteriousNotes.MysteriousNotesService // 0x00C8 (0x04F0 - 0x0428) class AMysteriousNotesService : public AActor { public: unsigned char UnknownData00[0x28]; // 0x0428(0x0028) MISSED OFFSET class UMysteriousNoteSettings* CachedNoteSettings; // 0x0450(0x0008) (ZeroConstructor, IsPlainOldData) class UWieldableMysteriousNoteDataAsset* WieldableNoteDataAsset; // 0x0458(0x0008) (ZeroConstructor, IsPlainOldData) class UMysteriousNotesCompletionEventsModelDataAsset* CompletionEventsModelData; // 0x0460(0x0008) (ZeroConstructor, IsPlainOldData) unsigned char UnknownData01[0x88]; // 0x0468(0x0088) MISSED OFFSET static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.MysteriousNotesService")); return ptr; } }; // Class MysteriousNotes.PlayerMysteriousNoteInterface // 0x0000 (0x0028 - 0x0028) class UPlayerMysteriousNoteInterface : public UInterface { public: static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.PlayerMysteriousNoteInterface")); return ptr; } }; // Class MysteriousNotes.PlayerMysteriousNoteComponent // 0x0170 (0x0238 - 0x00C8) class UPlayerMysteriousNoteComponent : public UActorComponent { public: unsigned char UnknownData00[0x8]; // 0x00C8(0x0008) MISSED OFFSET struct FClientNoteData NoteData; // 0x00D0(0x0018) (Net) bool BeenPossessed; // 0x00E8(0x0001) (Net, ZeroConstructor, IsPlainOldData) bool CinematicPlayed; // 0x00E9(0x0001) (ZeroConstructor, IsPlainOldData) unsigned char UnknownData01[0x14E]; // 0x00EA(0x014E) MISSED OFFSET static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.PlayerMysteriousNoteComponent")); return ptr; } void TriggerNotesReceivedPopup(bool InCinematicSkipped); void Server_NoteCompletionStepReceived(class APlayerController* InPlayerController, const struct FName& InCompletionID); void Server_MarkNoteAsRead(class APlayerController* InPlayerController, const struct FGuid& NoteId); void Server_MarkNoteAsDeleted(class APlayerController* InPlayerController, const struct FGuid& NoteId); void OnRep_NoteData(); void OnRep_BeenPossessed(); void AddFakeNote(const class FString& NoteType, const class FString& NoteTitle, const class FString& NoteBody, TArray<class FString> CompletionStrings); }; // Class MysteriousNotes.WieldableMysteriousNote // 0x01B0 (0x0980 - 0x07D0) class AWieldableMysteriousNote : public ASkeletalMeshWieldableItem { public: unsigned char UnknownData00[0x10]; // 0x07D0(0x0010) MISSED OFFSET class UMaybeCompressedCanvasRenderTarget2D* RenderTarget; // 0x07E0(0x0008) (ZeroConstructor, IsPlainOldData) class UWieldableMysteriousNoteLayout* NoteLayout; // 0x07E8(0x0008) (Net, ZeroConstructor, IsPlainOldData) int CanvasWidth; // 0x07F0(0x0004) (Edit, ZeroConstructor, DisableEditOnInstance, IsPlainOldData) int CanvasHeight; // 0x07F4(0x0004) (Edit, ZeroConstructor, DisableEditOnInstance, IsPlainOldData) float FontScale; // 0x07F8(0x0004) (Edit, ZeroConstructor, DisableEditOnInstance, IsPlainOldData) unsigned char UnknownData01[0x54]; // 0x07FC(0x0054) MISSED OFFSET class UNamedNotificationInputComponent* NamedNotificationInputComponent; // 0x0850(0x0008) (Edit, ExportObject, ZeroConstructor, DisableEditOnInstance, InstancedReference, IsPlainOldData) class UUsableWieldableComponent* UsableWieldableComponent; // 0x0858(0x0008) (Edit, ExportObject, ZeroConstructor, DisableEditOnInstance, InstancedReference, IsPlainOldData) class UInventoryItemComponent* InventoryItemComponent; // 0x0860(0x0008) (Edit, ExportObject, ZeroConstructor, DisableEditOnInstance, InstancedReference, IsPlainOldData) unsigned char UnknownData02[0x118]; // 0x0868(0x0118) MISSED OFFSET static UClass* StaticClass() { static auto ptr = UObject::FindObject<UClass>(_xor_("Class MysteriousNotes.WieldableMysteriousNote")); return ptr; } void OnTextCanvasUpdate(class UCanvas* Canvas, int Width, int Height); void OnRep_NoteLayout(); }; } #ifdef _MSC_VER #pragma pack(pop) #endif
f0de60cfd7bd4525e502c4ab516c292acae2a545
fd67f48ed77b16af95a592da382f92334b33b6d5
/EasyTcpServer/EasyTcpServer/server.cpp
42712ae62e708aa3d4ca19e1e9e1e293caec796c
[]
no_license
sunkiist/server-client
d1d570b13c9919dc525d2f12972ab1900e3b2b78
9d59849b5ec13d0a757d64008fdbce9f4827d70e
refs/heads/master
2020-04-29T02:07:09.561793
2019-03-15T05:14:42
2019-03-15T05:14:42
175,753,068
1
0
null
null
null
null
GB18030
C++
false
false
4,530
cpp
server.cpp
#define WIN32_LEAN_AND_MEAN #define _WINSOCK_DEPRECATED_NO_WARNINGS #include<WinSock2.h> //此头文件必须在前面 #include<windows.h> //windows socket #include<iostream> #include <stdio.h> #include<string.h> #pragma comment(lib,"ws2_32.lib")//添加链接库 enum CMD {//表示命令的类型 CMD_LOGIN, CMD_LOGIN_RESULT, CMD_LOGOUT, CMD_LOGOUT_RESULT, CMD_ERROR }; struct DataHeader {//包头 short dataLength;//数据长度 short cmd;//命令 }; //DataPackage struct Login :public DataHeader{//登陆 Login() { dataLength = sizeof(Login);//根据继承来的头部变化的设置信息 cmd = CMD_LOGIN; } char userName[32]; char PassWord[32]; }; struct LoginResult:public DataHeader { LoginResult() { dataLength = sizeof(LoginResult); cmd = CMD_LOGIN_RESULT; result = 0; } int result; }; struct Logout :public DataHeader {//登出 Logout() { dataLength = sizeof(Logout); cmd = CMD_LOGOUT; } char userName[32]; }; struct LogoutResult :public DataHeader { LogoutResult() { dataLength = sizeof(LogoutResult); cmd = CMD_LOGOUT_RESULT; result = 0; } int result; }; int main() { WORD ver = MAKEWORD(2, 2);//表示使用WINSOCK2版本 WSADATA dat;//第二个参数是指向WSADATA的指针.该函数返回一个INT型值, 通过检查这个值来确定初始化是否成功 WSAStartup(ver, &dat); //1 建立一个socket SOCKET _sock=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);//ipv4,数据类型,tcp/udp //2 bind 绑定用于接受客户端连接的网络端口 sockaddr_in _sin = {}; _sin.sin_family = AF_INET;//协议类型 _sin.sin_port = htons(4567);//主机和网络数据序不同,要进行转换 _sin.sin_addr.S_un.S_addr = INADDR_ANY;//哪个地址都行//inet_addr("127.0.0.1")服务器绑定到主机地址(本机地址所以要inet_addr转换) if (SOCKET_ERROR == bind(_sock, (sockaddr*)&_sin, sizeof(_sin)))//监听的目的是判断绑定是否成功,bind函数:socket类型,socket的网路地址描述数据,数据长度 { std::cout << "错误,绑定用于接受客户端接连的网络端口失败..." << std::endl; } else{ std::cout << "绑定网络端口成功..." << std::endl; } //3 listen 监听网络端口 if (SOCKET_ERROR == listen(_sock, 5))//第二个参数表示可以有多少人连接 { std::cout << "错误,监听网络端口失败..." << std::endl; } else { std::cout << "监听网络端口成功..." << std::endl; } //4 accepet等待客户端连接 sockaddr_in clientAddr = {}; int nAddrLen = sizeof(sockaddr_in); SOCKET _cSock = INVALID_SOCKET;//定义为一个不用的socket地址 _cSock = accept(_sock, (sockaddr*)&clientAddr, &nAddrLen); if (INVALID_SOCKET == _cSock) { std::cout << "错误,接收到无效客户端SOCKET...\n" << std::endl; } else { printf_s("新客户端加入:socket=%d,IP=%s \n", (int)_cSock,inet_ntoa(clientAddr.sin_addr));//将客户端地址转化为可读类型,本函数将一个用in参数所表示的Internet地址结构转换成以“.” 间隔的诸如“a.b.c.d”的字符串形式 } while (true) {//服务端循环接受数据 //缓冲区 char szRecv[1024] = {}; //5 接收客户端的数据 int nLen = recv(_cSock, szRecv, sizeof(DataHeader), 0);//先接收头,注意参数2和参数3不来自同一个对象 DataHeader* header=(DataHeader*)szRecv; if (nLen <= 0) { printf("客户端已退出,任务结束。\n"); break; } switch (header->cmd) { case CMD_LOGIN: { recv(_cSock, szRecv+sizeof(DataHeader), header->dataLength-sizeof(DataHeader), 0); Login* login = (Login*)szRecv; printf("收到命令:CMD_LOGIN,数据长度:%d,用户名:%s,密码:%s\n", login->dataLength, login->userName, login->PassWord); //忽略判断用户名、密码是否正确的过程 LoginResult ret ; send(_cSock, (char*)&ret, sizeof(LoginResult), 0); } break; case CMD_LOGOUT: { recv(_cSock, szRecv + sizeof(DataHeader), header->dataLength-sizeof(DataHeader), 0); Logout* loginout = (Logout*)szRecv; printf("收到命令:CMD_LOGOUT,数据长度:%d,用户名:%s\n", loginout->dataLength,loginout->userName); //忽略判断用户名、密码是否正确的过程 LogoutResult ret; send(_cSock, (char*)&ret, sizeof(ret), 0); } break; default: { DataHeader header = { 0,CMD_ERROR }; send(_cSock, (char*)&header, sizeof(header), 0); } break; } } //6 关闭套接字closesocket closesocket(_sock); printf("退出,任务结束。\n"); WSACleanup(); getchar(); return 0; }
fb4de705edd8404338c5c52a2a055cc36df2e5d9
c263bc50805e004b097ca125113668d956e97f6c
/VisAlg2DBase.h
908aeb6f30590073b353543cd5888b03d5aaee78
[]
no_license
veteran008/Lp2DBase
bde2268bb878fb8eeda9950c84b450273908c699
80543327b6ddb9222f0deec93c7d57bf2206cbef
refs/heads/master
2020-12-10T03:25:45.162869
2017-06-27T11:31:13
2017-06-27T11:31:13
95,550,259
0
1
null
null
null
null
GB18030
C++
false
false
5,542
h
VisAlg2DBase.h
#pragma once #include <vector> #include <ipp.h> #include <mkl.h> #include "ViType.h" #define PI 3.14159265386 #define fitting_sigma 20 using namespace std; enum ArcDirection//圆弧方向 { CLOCKWISE,//顺时针 ANTICLOCLWISE//逆时针 }; typedef struct { IMG_RCOORD CirCen;//圆心 IMG_REAL Radius;//半径 }StructCircle;//圆 typedef struct { IMG_RCOORD CirCen;//圆心 IMG_REAL Radius;//半径 IMG_RCOORD startPoint;//起点 IMG_RCOORD endPoint;//终点 IMG_REAL startAngle; IMG_REAL sweepAngle; ArcDirection direct;//方向 }StructArc;//圆弧 typedef struct tagEllipseStruct //椭圆结构 { Ipp32f a; Ipp32f b; Ipp32f c; Ipp32f d; Ipp32f e; Ipp32f f; Ipp32f center_x; //中心x坐标 Ipp32f center_y; //中心y坐标 Ipp32f axis_a; //长轴? Ipp32f axis_b; //短轴? Ipp32f rotateTheta; //旋转角度 }EllipseStruct; typedef struct tagRegionPeakPoint //连通域四个极值点 { int xMin; int xMax; int yMin; int yMax; tagRegionPeakPoint() { xMin = 0; xMax = 0; yMin = 0; yMax = 0; } }RegionPeakPoint; typedef struct tagRegionWidthHeight //连通域宽高 { int width; int height; tagRegionWidthHeight() { width = 0; height = 0; } }RegionWidthHeight; typedef struct { IMG_COORD xyInteger; //像素点 IMG_RCOORD xyDecimal;//亚像素点 int gradient; float angle; }edgeInformation;//边缘点 class CVisAlg2DBase { public: CVisAlg2DBase(); ~CVisAlg2DBase(); ///////////////////Pyramid//////////////////////// //Author:Liu Ping int VisPyramid(IMG_UBBUF src, unsigned char * pDst, int & pyramid_width, int & pyramid_height, int level); //Author:Shen Jiancheng IppStatus VisPyramid2(Ipp8u * pSrc, IppiSize roiSize, IppiPyramid *& pPyrStruct, Ipp8u **& pPyrImage, int level); /////////////////// Filter///////////////////////// //Author: Jiang He/20170407 int VisFilterMean(const unsigned char *src, const int srcHeight, const int srcWidth, unsigned char *dst, const unsigned char kernelSize, unsigned int divisor); int VisFilterGaussian(const unsigned char *src, const int srcHeight, const int srcWidth, unsigned char *dst, const unsigned char winWidth); int VisFilterMedian(const unsigned char *src, const int srcHeight, const int srcWidth, unsigned char *dst, const unsigned char winWidth); ////////////////// Fitting//////////////////////////// // Author: 申健成/20170227 int VisFittingCircular(const float *point_pos, const int m, StructCircle &circular_fit, const int iteration_times); int VisFittingArc(const float *point_pos, const int m, StructArc &arc_fit, const int iteration_times); //Author:申健成/詹铭泽/20170412 bool VisFitting_Ellipse(Ipp32f *xy, int m, EllipseStruct &resu); //Author:申健成/詹铭泽/20170412 bool VisFitting_Ellipse_Str(Ipp32f *xy, int m, EllipseStruct &resu); IMG_VVOID inverse(IMG_LREAL* A, IMG_INT N); // Author:Tan Ling/20170412 IMG_INT GNERAL_LINE_FITTING(vector<IMG_RCOORD>PointCor, IMG_REAL &Slope, IMG_REAL &B, IMG_REAL Sigma, IMG_INT FLAG); //////////////// Histogram related//////////////// //Author:Liu Ping int VisHistogram(IMG_UBBUF src, Ipp32u * pHist, int nBins); ////////////Segment//////////// int VisSegmentManual(const unsigned char * pSrc, const unsigned int nW, const unsigned int nH, unsigned char * pDst, const unsigned char nT); int VisSegmentOtsu(const unsigned char * pSrc, const unsigned int nW, const unsigned int nH, unsigned char * pDst); int VisCalcOtsu(const unsigned char * pSrc, const unsigned int nW, const unsigned int nH, unsigned char & nThres); int VisSegmentDynamic(const unsigned char * pSrc, const unsigned int nW, const unsigned int nH, unsigned char * pDst, const unsigned int avgWinWidth); int VisSegmentCntDots(unsigned char * pSrc, const unsigned int nW, const unsigned int nH, unsigned char * pDst, const double fWhiteRatio); //Author:Huang Yige void VisGetBlobThreshold(Ipp8u *srcRoi, IppiSize Roi, int BlobThreshold); ///////////////////Morphology////////////////// int VisMorphologyErode(unsigned char * src1, int srcWidth, int srcHeight, unsigned char * dst); int VisMorphologyDilation(unsigned char * src1, int srcWidth, int srcHeight, unsigned char * dst); int VisMorphologyOpen(IMG_UBBUF src, IMG_UBBUF dst); int VisMorphologyClose(IMG_UBBUF src, IMG_UBBUF dst); // Author: 詹铭泽/20170412 int getRegionInfo(IMG_UBBUF src,int regionNum,int *regionArea,RegionPeakPoint *regionPeakPoint,RegionWidthHeight *regionWH, IppiPoint *regionGraCenPoint); int VisHoleFill(unsigned char * srcSeg, int srcWidth, int srcHeight, unsigned char * dst); //Author:Huang Yige void VisLabelMarker(Ipp8u *srcRoi, IppiSize Roi, int &markersNum); //Author:Huang Yige void VisMoment(Ipp8u *srcRoi, IppiSize Roi, double &hu); ///////// Gradient///////////Sobel等 int GradientCompute(unsigned char * src, int srcWidth, int srcHeight, int rowNum, int colNum, int * dst, IMG_COORD * edgePoint); int SobelFilter_8u16s_C1_5x5or3x3(IMG_UBYTE * pSrc, IppiSize roiSize, Ipp16s * pDst, Ipp32f * pAngle, int flag); ////Edge//////// //Canny、own int GradientCompute(unsigned char * src, int srcWidth, int srcHeight, int rowNum, int colNum, float threshold, int * dst, vector<edgeInformation>& edgePoint); IMG_INT VisEdge_detection(IMG_UBYTE * srcRoi, IMG_SIZE roiSize, int threshold, IMG_WORD * dstRoi, IMG_UBYTE * dstRoiE, edgeInformation *& edgeArray, IMG_INT & eNum); private: IMG_REAL getIntraClassVariance(Ipp16s * src, int srcRows, int srcCols, int & varTh); };
75027e63b724c910ffaf61baa8387073fa4d099f
13240a810679cc98b5345fe884650f6f69f6b2e5
/boj/5615.cpp
2bc30070f49b2db2ee1208143e64e5defdb148a7
[]
no_license
tristan3716/Problem-Solving
a7d76941f089e1a54fd7772bc7fa79236e3ac12b
c0df0748084eae31626985e00b1884d4adf29f3f
refs/heads/master
2021-07-09T11:07:17.223598
2021-04-09T14:25:01
2021-04-09T14:25:01
240,870,428
1
0
null
null
null
null
UTF-8
C++
false
false
2,570
cpp
5615.cpp
#include <iostream> using namespace std; using ull = unsigned long long; ull alist32[] = {2, 7, 61}; ull alist64[] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37}; inline unsigned long long addmod64(ull x, ull y, ull mod) { x %= mod; y %= mod; return (x >= mod - y? x - (mod - y) : x + y); } inline ull mulmod64(ull x, ull y, ull mod) { x %= mod; y %= mod; ull r = 0; while (y) { if (y % 2 == 1) r = addmod64(r, x, mod); x = addmod64(x, x, mod); y /= 2; } return r; } inline ull powmod32(ull x, ull y, ull m) { x %= m; ull r = 1ULL; while (y) { if (y & 1) r = (r * x) % m; x = (x * x) % m; y >>= 1; } return r; } inline ull powmod64(ull x, ull y, ull mod) { x %= mod; ull r = 1ULL; while (y) { if (y % 2 == 1) r = mulmod64(r, x, mod); x = mulmod64(x, x, mod); y /= 2; } return r; } inline bool miller_rabin32(ull n, ull a) { if (n % a == 0) return false; int cnt = -1; ull d = n - 1; while (!(d&1)) { d >>= 1; cnt++; } ull p = powmod32(a, d, n); if (p == 1 || p == n - 1) return true; while (cnt--) { p = (p * p) % n; if (p == n - 1) return true; } return false; } inline bool miller_rabin64(ull n, ull a) { if (n % a == 0) return false; int cnt = -1; ull d = n - 1; while (!(d&1)) { d >>= 1; cnt++; } ull p = powmod64(a, d, n); if (p == 1 || p == n - 1) return true; while (cnt--) { p = mulmod64(p, p, n); if (p == n - 1) return true; } return false; } bool is_prime(ull n) { if (n <= 1) return false; if (n % 2 == 0 && n != 2) return false; if (n < 10000ULL) { for (ull i = 2; i*i <= n; i++) if (n % i == 0) return false; return true; } else if (n < 4294967296ULL) { for (ull a : alist32) if (!miller_rabin32(n, a)) return false; return true; } else { for (ull a : alist64) if (!miller_rabin64(n, a)) return false; return true; } } int main(void) { std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int t; cin >> t; int count = 0; unsigned int k; while (t--) { cin >> k; count += is_prime(2*k+1); } cout << count; return 0; }