<commit_before>#include "IO.hpp"

namespace cos
{
	namespace io
	{
		uint8 in8(uint16 port)
		{
			uint8 ret;
			asm volatile("inb %1, %0" : "=a"(ret) : "dN"(port));
			return ret;
		}
		
		uint16 in16(uint16 port)
		{
			uint16 ret;
			asm volatile("inb %1, %0" : "=a"(ret) : "dN"(port));
			return ret;
		}
		
		uint32 in32(uint16 port)
		{
			uint32 ret;
			asm volatile("inb %1, %0" : "=a"(ret) : "dN"(port));
			return ret;
		}

		void out8(uint16 port, uint8 data)
		{
			asm volatile("outb %1, %0" : : "dN"(port), "a"(data));
		}

		void out16(uint16 port, uint16 data)
		{
			asm volatile("outb %1, %0" : : "dN"(port), "a"(data));
		}

		void out32(uint16 port, uint32 data)
		{
			asm volatile("outb %1, %0" : : "dN"(port), "a"(data));
		}

		void wait()
		{
			asm volatile("outb %%al, $0x80" : : "a"(0));
		}
	}
}<commit_msg>Forgot to change the asm code to reflect size of data. Fixed.<commit_after>#include "IO.hpp"

namespace cos
{
	namespace io
	{
		uint8 in8(uint16 port)
		{
			uint8 ret;
			asm volatile("inb %1, %0" : "=a"(ret) : "dN"(port));
			return ret;
		}
		
		uint16 in16(uint16 port)
		{
			uint16 ret;
			asm volatile("inw %1, %0" : "=a"(ret) : "dN"(port));
			return ret;
		}
		
		uint32 in32(uint16 port)
		{
			uint32 ret;
			asm volatile("inl %1, %0" : "=a"(ret) : "dN"(port));
			return ret;
		}

		void out8(uint16 port, uint8 data)
		{
			asm volatile("outb %1, %0" : : "dN"(port), "a"(data));
		}

		void out16(uint16 port, uint16 data)
		{
			asm volatile("outw %1, %0" : : "dN"(port), "a"(data));
		}

		void out32(uint16 port, uint32 data)
		{
			asm volatile("outl %1, %0" : : "dN"(port), "a"(data));
		}

		void wait()
		{
			asm volatile("outb %%al, $0x80" : : "a"(0));
		}
	}
}
{'fraction_non_alphanumeric': 0.2069767441860465, 'fraction_numerical': 0.06162790697674419, 'mean_word_length': 2.9292237442922375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1715666', 'n_tokens_mistral': 931, 'n_tokens_neox': 751, 'n_words': 181}