summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bbe.c3
-rw-r--r--src/buffer.c2
-rw-r--r--src/execute.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/src/bbe.c b/src/bbe.c
index 39505a8..a91e4be 100644
--- a/src/bbe.c
+++ b/src/bbe.c
@@ -75,7 +75,7 @@ char *convert_strings[] = {
#define BLOCK_START_COMMANDS "DIJLFBN>"
/* commands to be executed for each byte */
-#define BYTE_COMMANDS "acdirsywjpl&|^~uf"
+#define BYTE_COMMANDS "acdirsywjpl&|^~ufx"
/* commands to be executed at end of buffer */
#define BLOCK_END_COMMANDS "A<"
@@ -575,6 +575,7 @@ parse_command(char *command_string)
if(new->s1_len != 1) panic("Error in command",command_string,NULL);
break;
case '~':
+ case 'x':
if(i != 1 || strlen(token[0]) > 1) panic("Error in command",command_string,NULL);
break;
case 'u':
diff --git a/src/buffer.c b/src/buffer.c
index 99d0ee6..f7163ba 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -20,7 +20,7 @@
*
*/
-/* $Id: buffer.c,v 1.36 2006-10-24 16:50:54 timo Exp $ */
+/* $Id: buffer.c,v 1.37 2006-11-02 17:11:36 timo Exp $ */
#include "bbe.h"
#include <stdlib.h>
diff --git a/src/execute.c b/src/execute.c
index 79891cd..826bb25 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -438,6 +438,9 @@ execute_commands(struct command_list *c)
break;
case 'w':
break;
+ case 'x':
+ put_byte(((*out_buffer.write_pos << 4) & 0xf0) | ((*out_buffer.write_pos >> 4) & 0x0f));
+ break;
}
c = c->next;
}
OpenPOWER on IntegriCloud