Simplify SUBF and remove not_this.

This commit is contained in:
Maxim Poliakovski 2020-02-09 08:04:38 +01:00
parent 32e64fc1b2
commit b057a8373d
2 changed files with 1 additions and 4 deletions

View File

@ -164,7 +164,6 @@ extern uint32_t rot_sh;
extern uint32_t rot_mb;
extern uint32_t rot_me;
extern uint32_t uimm;
extern uint32_t not_this;
extern uint32_t grab_sr;
extern uint32_t grab_inb; //This is for grabbing the number of immediate bytes for loading and storing
extern uint32_t ppc_to;

View File

@ -29,7 +29,6 @@ uint32_t xercon;
uint32_t cmp_c;
uint32_t crm;
uint32_t uimm;
uint32_t not_this;
uint32_t grab_sr;
uint32_t grab_inb; //This is for grabbing the number of immediate bytes for loading and storing
uint32_t ppc_to;
@ -448,8 +447,7 @@ void ppc_addzeodot() {
void ppc_subf() {
ppc_grab_regsdab();
not_this = ~ppc_result_a;
ppc_result_d = not_this + ppc_result_b + 1;
ppc_result_d = ppc_result_b - ppc_result_a;
ppc_store_result_regd();
}