21 |
#include "rdesktop.h" |
#include "rdesktop.h" |
22 |
|
|
23 |
#define CVAL(p) (*(p++)) |
#define CVAL(p) (*(p++)) |
|
#define SVAL(p) ((*((p++) + 1) << 8) | CVAL(p)) |
|
24 |
|
|
25 |
#define UNROLL8(exp) { exp exp exp exp exp exp exp exp } |
#define UNROLL8(exp) { exp exp exp exp exp exp exp exp } |
26 |
|
|
74 |
case 0xf: |
case 0xf: |
75 |
opcode = code & 0xf; |
opcode = code & 0xf; |
76 |
if (opcode < 9) |
if (opcode < 9) |
77 |
count = SVAL(input); |
{ |
78 |
|
count = CVAL(input); |
79 |
|
count |= CVAL(input) << 8; |
80 |
|
} |
81 |
else |
else |
82 |
|
{ |
83 |
count = (opcode < 0xb) ? 8 : 1; |
count = (opcode < 0xb) ? 8 : 1; |
84 |
|
} |
85 |
offset = 0; |
offset = 0; |
86 |
break; |
break; |
87 |
|
|