[DEVCPP i 13H]

0
#include <iostream>
#include <stdlib.h>

using namespace std;

int main(int argc, char *argv[])
{
  asm
  { 
    mov ax,13h
    int 10h
  }
  system("PAUSE");	
  return 0;
}

robie tak i mi wyskakuja bledy:

9 D:\C++\yeah\main.cpp
parse error before {' token 10 D:\C++\yeah\main.cpp invalid suffix on integer constant 11 D:\C++\yeah\main.cpp invalid suffix on integer constant 13 D:\C++\yeah\main.cpp ISO C++ forbids declaration of system' with no type
13 D:\C++\yeah\main.cpp
int system' redeclared as different kind of symbol 373 C:\Dev-Cpp\include\stdlib.h previous declaration of int system(const
13 D:\C++\yeah\main.cpp
invalid conversion from const char*' to int'
14 D:\C++\yeah\main.cpp
parse error before `return'

gdy nie robie tych wstawek assemblerowych to mnie ma bledow. jak sie wchodzi (lamerskie slowo: wchodzi) do 13h???? probuje wszystkiego i nic :( help

0

uzycie: asm("rozkazy w skladni AT&T");

0

1 - pod dev-c++ ani pod zadnym innym kompilatorem pod windowsa nie mozesz uzywac 13H !!
2 - dev-c++ -> mingw -> gcc wiec obowiazuje skladnia At&T

0

asm("mov ax,13 & hint 10h");

coś takiego?? chyba nie;)

Error C:\DOCUME1\Matt\USTAWI1\Temp\ccSabaaa.s:25
too many memory references for `mov'

// Skoro wydało się, że to notacja to np.: mov 13,%ax (move ?) zmiast intelowskiego mov ax,13 poszukaj na google 'at&t assembler notation' [mf]

1 użytkowników online, w tym zalogowanych: 0, gości: 1