/* MSP430 Emulator Copyright (C) 2020 Rudolf Geosits (rgeosits@live.esu.edu) "MSP430 Emulator" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. "MSP430 Emulator" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef _FLAG_HANDLER_H_ #define _FLAG_HANDLER_H_ #include #include #include "decoder.h" uint8_t is_overflowed (uint16_t source, uint16_t original_destination, uint16_t *result_addr, uint8_t bw_flag); uint8_t is_negative (int16_t *result_addr, uint8_t bw_flag); uint8_t is_zero (uint16_t *result_addr, uint8_t bw_flag); uint8_t is_carried (uint32_t original_dst_value, uint32_t source_value, uint8_t bw_flag); #endif