delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/03/11/12:24:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Authenticated: #19263686
X-Provags-ID: V01U2FsdGVkX1/i/o9/aFnidpt9VxcH+dyoXlBxjiT2ZLLU+HCAgn
FOYY/GoFUNGeoz
From: "Daniel Kiedrowski" <kie AT gmx DOT de>
To: <djgpp AT delorie DOT com>
Subject: relocation truncated to fit: 16 against .bss
Date: Tue, 11 Mar 2008 17:57:42 +0100
Message-ID: <00e901c88399$07863510$16929f30$@de>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AciDmPh7BOSrAoBeTNW2yxKzSKkyPg==
x-cr-hashedpuzzle: AaOw Aj89 BGoR BTQk CuoW DjD+ D4aK FMvL F/8b GM2I G8MG IZpy ImN3 IoGh I453 KVWf;1;ZABqAGcAcABwAEAAZABlAGwAbwByAGkAZQAuAGMAbwBtAA==;Sosha1_v1;7;{52B7D998-F1E2-4ED8-A747-32AB1E655232};awBpAGUAQABnAG0AeAAuAGQAZQA=;Tue, 11 Mar 2008 16:57:21 GMT;cgBlAGwAbwBjAGEAdABpAG8AbgAgAHQAcgB1AG4AYwBhAHQAZQBkACAAdABvACAAZgBpAHQAOgAgADEANgAgAGEAZwBhAGkAbgBzAHQAIAAuAGIAcwBzAA==
x-cr-puzzleid: {52B7D998-F1E2-4ED8-A747-32AB1E655232}
X-Y-GMX-Trusted: 0
Reply-To: djgpp AT delorie DOT com

Hi I'm triying to write my own Keyboard ISR, but I am having some Trouble
with my ASM code to gat the scan_code from the PIC.

Here is my ASM:

asm("sti\n\t"
      "inb $0x60, %al\n\t"
      "xor %ah, %ah\n\t"
      "movw $_raw_scan_code, %ax\n\t"
      "inb $0x61, %al\n\t"
      "or 0x82, %al\n\t"
      "outb %al,$0x61\n\t"
      "and 0x7f, %al\n\t"
      "outb %al, $0x61\n\t"
      "movb $0x20, %al\n\t"
      "outb %al, $0x20");

I'm getting the following error msg: relocation truncated to fit: 16 against
.bss

I dont understand this.

thx 4 your help,
daniel kiedrowski

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019