Permalink
Browse files

added support for windows cross compilation

  • Loading branch information...
1 parent 43beef8 commit b885fd34e3e15fa589c1a15386059ba5318b7566 @noname22 committed Apr 18, 2012
Showing with 8 additions and 7 deletions.
  1. +4 −3 common/common.c
  2. +0 −3 dasm/project.spank
  3. +3 −0 dasm/spank/project.spank
  4. +1 −1 dasm/src/labels.c
View
@@ -2,15 +2,16 @@
void WriteRam(uint16_t* ram, const char* filename, uint16_t end, DByteOrder bo)
{
- FILE* out = fopen(filename, "w");
+ FILE* out = fopen(filename, "wb");
LAssert(out, "could not open new file for writing: %s", filename);
for(int i = 0; i < end + 1; i++){
if(bo == DBO_LittleEndian){
+ LogD("%02x %02x", ram[i] & 0xff, (ram[i] >> 8) & 0xff);
fputc(ram[i] & 0xff, out);
- fputc(ram[i] >> 8, out);
+ fputc((ram[i] >> 8) & 0xff, out);
} else {
- fputc(ram[i] >> 8, out);
+ fputc((ram[i] >> 8) & 0xff, out);
fputc(ram[i] & 0xff, out);
}
}
View
@@ -1,3 +0,0 @@
-target dasm
-cflags ggdb std=gnu99 Wall pedantic I../common
-sourcedir src ../common
View
@@ -0,0 +1,3 @@
+include spank/common.inc
+
+target dasm
View
@@ -95,7 +95,7 @@ void Labels_Replace(Labels* me, uint16_t* ram)
{
LogD("replacing labels");
- LogD("%d", me->count);
+ LogD("label count: %d", me->count);
Label* l;
Vector_ForEach(*me, l){

0 comments on commit b885fd3

Please sign in to comment.