From 85fc269d495c943f37e821a8b4e6c912e8c58b90 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Tue, 15 Oct 2013 22:36:26 +0200 Subject: [PATCH] Fix family and model computations --- src/commands.asm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands.asm b/src/commands.asm index c762a429..0b74de72 100644 --- a/src/commands.asm +++ b/src/commands.asm @@ -127,20 +127,23 @@ sysinfo_command: ; model id mov r14, r15 and r14, 0xF0 + shr r14, 4 ; family id mov r13, r15 and r13, 0xF00 + shr r13, 8 ; extended model id mov r12, r15 and r12, 0xF0000 + shr r12, 12 ; extended family id mov r11, r15 and r11, 0xFF00000 + shr r11, 16 - shl r12, 4 mov r8, r14 add r8, r12 call set_current_position