From 921ef60ea6851935ac1eb36330576f96d220c69c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 12 Jan 2009 17:44:36 +0000 Subject: Complete bytecode dumping code. Change a few opcode values to be more consistent (namely, bit 7 set generally implies that there's data to follow). svn path=/trunk/libcss/; revision=6048 --- docs/Bytecode | 102 +++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 65 insertions(+), 37 deletions(-) (limited to 'docs') diff --git a/docs/Bytecode b/docs/Bytecode index 4f4dcf9..e4c9e26 100644 --- a/docs/Bytecode +++ b/docs/Bytecode @@ -199,8 +199,11 @@ Opcodes 07 - border-spacing (14bits) : bits 8-13: MBZ - bits 0-7 : 00000000 => two lengths follow, - other => Reserved for future expansion. + bits 0-7 : + bit 7: set => two lengths follow + bits 0-6: MBZ + clear => Reserved for future expansion. + bits 0-6: MBZ 08 - border-{top,right,bottom,left}-color (14bits) : @@ -210,9 +213,11 @@ Opcodes 01 => right 10 => bottom 11 => left - bits 0-7 : 00000000 => colour follows, - 00000001 => transparent, - other => Reserved for future expansion. + bit 7 set => colour follows. + bits 0-6: MBZ + bit 7 clear => keyword colour: + bits 1-6: MBZ + bit 0 : clear => transparent, set => rffe. 09 - border-{top,right,bottom,left}-style (14bits) : @@ -309,8 +314,10 @@ Opcodes (14bits) : bits 8-13: MBZ bits 0-7: - 00000000 => colour follows, - other => Reserved for future expansion. + bit 7: set => colour follows. + bits 0-6: MBZ. + clear => Reserved for future expansion. + bits 0-6: MBZ. 10 - content (14bits) : @@ -510,9 +517,9 @@ Opcodes 0000101 => monospace, other => rffe. - If the value indicates that data follows, then there is a parameter - list. Each item is preceded by a word which declares the type - of the next item. The list is terminated by a word with all bits clear. + In all cases, there is a parameter list. Each item is preceded by a + word which declares the type of the next item. The list is + terminated by a word with all bits clear. 1c - font-size (14bits) : @@ -679,22 +686,28 @@ Opcodes (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => length or percentage follows, - other => Reserved for future expansion. + bit 7: set => length or percentage follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 2b - min-width (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => length or percentage follows, - other => Reserved for future expansion. + bit 7: set => length or percentage follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 2c - orphans (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => integer follows, - other => Reserved for future expansion. + bit 7: set => integer follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 2d - outline-color (14bits) : @@ -750,9 +763,11 @@ Opcodes 01 => right, 10 => bottom, 11 => left - bits 0-7 : - 00000000 => length or percentage follows, - other => Reserved for future expansion. + bits 0-7 : + bit 7: set => length or percentage follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 32 - page-break-after (14bits) : @@ -782,22 +797,28 @@ Opcodes (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => time or percentage follows, - other => Reserved for future expansion. + bit 7: set => time or percentage follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 36 - pause-before (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => time or percentage follows, - other => Reserved for future expansion. + bit 7: set => time or percentage follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 37 - pitch-range (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => number follows, - other => Reserved for future expansion. + bit 7: set => number follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 38 - pitch (14bits) : @@ -853,8 +874,10 @@ Opcodes (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => number follows, - other => Reserved for future expansion. + bit 7: set => number follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 3d - right (14bits) : @@ -911,8 +934,10 @@ Opcodes (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => number follows, - other => Reserved for future expansion. + bit 7: set => number follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 44 - table-layout (14bits) : @@ -945,8 +970,10 @@ Opcodes (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => length or percentage follows, - other => Reserved for future expansion. + bit 7: set => length or percentage follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 48 - text-transform (14bits) : @@ -1010,10 +1037,9 @@ Opcodes 0000011 => child, other => rffe. - If the value indicates that a string is present, then there is a - parameter list. Each item is preceded by a word which declares - the type of the next item. The list is terminated by a word with - all bits clear. + In all cases, there is a parameter list. Each item is preceded by a + word which declares the type of the next item. The list is + terminated by a word with all bits clear. 4e - volume (14bits) : @@ -1045,8 +1071,10 @@ Opcodes (14bits) : bits 8-13: MBZ bits 0-7 : - 00000000 => integer follows, - other => Reserved for future expansion. + bit 7: set => integer follows + bits 0-6: MBZ + clear => Reserved for future expansion + bits 0-6: MBZ 51 - width (14bits) : -- cgit v1.2.3