Sha256: 70276fffc1bad448cac13cf3c5b7c8d78dc00ffa11dea2d6ccaa7659a23642cd

Contents?: true

Size: 1.28 KB

Versions: 92

Compression:

Stored size: 1.28 KB

Contents

/*
Shiltiumcomp -- the first Shiltolang compiler

Copyright (C) 2010 Gregory Cohen <gregorycohenvideos@gmail.com>

This program 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.

This program 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 <http://www.gnu.org/licenses/>.
*/

#include "../../../global_headers/headers.h"
#include "x86_instructions.h"

u dac_get_length_of_fxch(void) {
	return 2;
}

void dac_append_fxch(DataAndCode* cr dac, const FPU_Register register_) {
	#if DEBUG
		output_nullt_string(TAB_STRING TAB_STRING "fxch");
		
		if (register_ != REGISTER_ST1) {
			output_nullt_string(" st");
			putu(register_);
		}
		
		output_newline();
	#endif
	
	dac->start_of_code[dac->current_instruction_offset] = (uchar)217;
	dac->start_of_code[dac->current_instruction_offset + 1] = (uchar)200 + register_;
	dac->current_instruction_offset += 2;
}

Version data entries

92 entries across 46 versions & 6 rubygems

Version Path
ufos-1.0.79 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
ufos-1.0.79 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
aliens-1.0.79 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
aliens-1.0.79 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
freespeech-1.0.79 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
freespeech-1.0.79 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
elonmusk-1.0.79 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
elonmusk-1.0.79 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
elonmusk-1.0.77 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
elonmusk-1.0.77 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
ufos-1.0.77 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
ufos-1.0.77 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
aliens-1.0.77 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
aliens-1.0.77 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
freespeech-1.0.77 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
freespeech-1.0.77 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
elonmusk-1.0.72 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
elonmusk-1.0.72 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c
ufos-1.0.72 ./other/old_compiler/shiltiumcomp59/arch/x86/instructions/fxch.c
ufos-1.0.72 ./other/old_compiler/shiltiumcomp58/arch/x86/instructions/fxch.c