diff --git a/src/main.cpp b/src/main.cpp index 4ad91c2..aa04a57 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,6 +12,8 @@ #include #include "murax.h" +#include + void print(const char*str){ while(*str){ @@ -26,6 +28,9 @@ void println(const char*str){ volatile int mati = 0; +// p/x *(uint32_t *)0xf0020048 +// p/x ((Timer_Reg *)0xf0020040)->VALUE +// p/x TimeR::ptr->VALUE // Modern C++ aproach // --- @@ -43,6 +48,22 @@ private: const Timer_Reg* TimeR::ptr = reinterpret_cast(0xF0020040); // --- + +/* +int len( const char * str) { + + int32_t i = 0; + while (*str!=0) { + ++i; + ++str; + }; + return i; + +} + +*/ + int32_t ile = 0; + int main() { // println("hello world arty a7 v1"); @@ -62,7 +83,10 @@ int main() { // Thread 0 while( 1){ - ++mati; + char * s = "11111111112222222222"; + ++ile; +// len (s); + } }