No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I need to split the below string: line.long 0x0 " MIDR, Identity Code Register" I have used space , as the delimiters. the code should give output in such a way that Command Name: line Size: long Offset : 0x0 short name: MIDR Long name=Identity code register. The problem is … |
|
The withoutcomment.txt file contains : [general] "PC", 0x0, 32, RW, reg , 1, "Program Counter (R15)"; "LR", 0x11, 32, RW, reg , 18, "Link Register (R14)"; "SP", 0x10, 32, RW, reg , 17, "Stack Pointer (R13)"; But i am able to print only first line but its not going to … |
|
hi, Can any one help me in parsing a file using java. for example in my text file i have data like line.long 0x0 "MIDR,Identity Code" so i need to read this from a file and print it as command=line type=long offset=0x0 description=MIDR,Identity code There are around 100's of lines … |
|
i have written a code on assembler... when we enter the mnemonics it will give opcode... when i use %x in the printf it is giving correct opcode.. but when i use %c or %s it is printing some different characters.. but what i want is if i use %s … |
|
#include <iostream> #include <windows.h> #include "g.h" typedef unsigned long (*AsmFunc)(AS_INBUF *, AS_OUTBUF *, T_REG_INF *, T_MPCNT *, ICE_ID *); int main() { AsmFunc _AsmFunc; HINSTANCE hInstLibrary = LoadLibrary((LPCWSTR)L"C:\Documents and Settings\karthikdatt\Desktop"); if (hInstLibrary) { _AsmFunc = (AsmFunc)GetProcAddress(hInstLibrary, "Assembler"); if (_AsmFunc) { std::cout << "ASSEMBLER FUNCTION" << _AsmFunc(ptr1,ptr2,ptr3,ptr4,ptr5) << std::endl; } } … |